ui/winui/container.cpp

changeset 75
73c8a3780c72
parent 0
2483f517c562
child 76
641dcc79e0ef
equal deleted inserted replaced
74:4466ebbd9fd5 75:73c8a3780c72
676 void ui_layout_vexpand(UiObject* obj, UiBool expand) { 676 void ui_layout_vexpand(UiObject* obj, UiBool expand) {
677 UiContainer* ct = uic_get_current_container(obj); 677 UiContainer* ct = uic_get_current_container(obj);
678 ct->layout.vexpand = expand; 678 ct->layout.vexpand = expand;
679 } 679 }
680 680
681 void ui_layout_hfill(UiObject *obj, UiBool fill) {
682 UiContainer *ct = uic_get_current_container(obj);
683 ct->layout.hfill = fill;
684 }
685
686 void ui_layout_vfill(UiObject *obj, UiBool fill) {
687 UiContainer *ct = uic_get_current_container(obj);
688 ct->layout.vfill = fill;
689 }
690
681 void ui_layout_width(UiObject* obj, int width) { 691 void ui_layout_width(UiObject* obj, int width) {
682 UiContainer* ct = uic_get_current_container(obj); 692 UiContainer* ct = uic_get_current_container(obj);
683 ct->layout.width = width; 693 ct->layout.width = width;
684 } 694 }
685 695

mercurial