forked from AbleOS/ableos
widgets
This commit is contained in:
parent
d2b5f09511
commit
818bcb458f
4
sysdata/libraries/horizon_api/examples/horizontal.lui
Normal file
4
sysdata/libraries/horizon_api/examples/horizontal.lui
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
(horizontal
|
||||||
|
spacing : 10
|
||||||
|
(label "hi")
|
||||||
|
(label "goodbye"))
|
5
sysdata/libraries/horizon_api/src/widgets/image.hb
Normal file
5
sysdata/libraries/horizon_api/src/widgets/image.hb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Image := struct {
|
||||||
|
magic: uint,
|
||||||
|
is_dirty: bool,
|
||||||
|
surface: Surface,
|
||||||
|
}
|
|
@ -1,4 +1,7 @@
|
||||||
|
NoWidget := 0
|
||||||
|
|
||||||
VerticalWidgetType := 1
|
VerticalWidgetType := 1
|
||||||
HorizontalWidgetType := 2
|
HorizontalWidgetType := 2
|
||||||
|
|
||||||
LabelWidgetType := 3
|
LabelWidgetType := 3
|
||||||
|
ImageWidgetType := 4
|
|
@ -11,6 +11,7 @@ render := @use("../../../../libraries/render/src/lib.hb");
|
||||||
|
|
||||||
widget_types := @use("widget_types.hb")
|
widget_types := @use("widget_types.hb")
|
||||||
label := @use("label.hb")
|
label := @use("label.hb")
|
||||||
|
image := @use("image.hb")
|
||||||
|
|
||||||
Size := struct {
|
Size := struct {
|
||||||
min_width: int,
|
min_width: int,
|
||||||
|
|
Loading…
Reference in a new issue