ableos/sysdata/libraries/horizon_api/src/widgets/widgets.hb

35 lines
650 B
Plaintext
Raw Normal View History

2024-11-06 20:11:36 -06:00
// Widget types
// End types
stn := @use("../../../../libraries/stn/src/lib.hb");
.{string, log} := stn;
.{Vec2} := stn.math
render := @use("../../../../libraries/render/src/lib.hb");
.{Surface} := render;
.{Font} := render.text
widget_types := @use("widget_types.hb")
label := @use("label.hb")
Size := struct {
min_width: int,
max_width: int,
min_height: int,
max_height: int,
}
Vertical := packed struct {
magic: uint,
// array of children, idk
// use a vec or linked list or whatever
2024-11-08 10:16:24 -06:00
2024-11-06 20:11:36 -06:00
children: ^^u8,
2024-11-07 09:57:39 -06:00
}
Horizontal := packed struct {
magic: uint,
// array of children, idk
// use a vec or linked list or whatever
children: ^^u8,
2024-11-06 20:11:36 -06:00
}