ui/motif/container.c

changeset 106
a4f4123ca12a
parent 99
ea1a2d5de765
child 111
40dbf1a7526a
equal deleted inserted replaced
105:86d729874ff4 106:a4f4123ca12a
368 UIWIDGET ui_hbox(UiObject *obj) { 368 UIWIDGET ui_hbox(UiObject *obj) {
369 return ui_box(obj, UI_BOX_HORIZONTAL); 369 return ui_box(obj, UI_BOX_HORIZONTAL);
370 } 370 }
371 371
372 UIWIDGET ui_grid(UiObject *obj) { 372 UIWIDGET ui_grid(UiObject *obj) {
373 return ui_grid_sp(obj, 0, 0); 373 return ui_grid_sp(obj, 0, 0, 0);
374 } 374 }
375 375
376 UIWIDGET ui_grid_sp(UiObject *obj, int margin, int columnspacing, int rowspacing) { 376 UIWIDGET ui_grid_sp(UiObject *obj, int margin, int columnspacing, int rowspacing) {
377 UiContainer *ct = uic_get_current_container(obj); 377 UiContainer *ct = uic_get_current_container(obj);
378 378
723 void ui_layout_fill(UiObject *obj, UiBool fill) { 723 void ui_layout_fill(UiObject *obj, UiBool fill) {
724 UiContainer *ct = uic_get_current_container(obj); 724 UiContainer *ct = uic_get_current_container(obj);
725 ct->layout.fill = ui_bool2lb(fill); 725 ct->layout.fill = ui_bool2lb(fill);
726 } 726 }
727 727
728 void ui_layout_hexpand(UiObject *obj, UiBool expand) {
729 UiContainer *ct = uic_get_current_container(obj);
730 ct->layout.hexpand = expand;
731 }
732
733 void ui_layout_vexpand(UiObject *obj, UiBool expand) {
734 UiContainer *ct = uic_get_current_container(obj);
735 ct->layout.vexpand = expand;
736 }
737
728 void ui_newline(UiObject *obj) { 738 void ui_newline(UiObject *obj) {
729 UiContainer *ct = uic_get_current_container(obj); 739 UiContainer *ct = uic_get_current_container(obj);
730 ct->layout.newline = TRUE; 740 ct->layout.newline = TRUE;
731 } 741 }

mercurial