ui/motif/container.h

changeset 103
6606616eca9f
parent 102
64ded9f6a6c6
child 108
77254bd6dccb
equal deleted inserted replaced
102:64ded9f6a6c6 103:6606616eca9f
42 layout.fill = args.fill; \ 42 layout.fill = args.fill; \
43 layout.hexpand = args.hexpand; \ 43 layout.hexpand = args.hexpand; \
44 layout.vexpand = args.vexpand; \ 44 layout.vexpand = args.vexpand; \
45 layout.hfill = args.hfill; \ 45 layout.hfill = args.hfill; \
46 layout.vfill = args.vfill; \ 46 layout.vfill = args.vfill; \
47 layout.override_defaults = args.override_defaults; \
47 layout.colspan = args.colspan; \ 48 layout.colspan = args.colspan; \
48 layout.rowspan = args.rowspan 49 layout.rowspan = args.rowspan
49 50
50 typedef enum UiBoxOrientation UiBoxOrientation; 51 typedef enum UiBoxOrientation UiBoxOrientation;
51 52
69 char *label; 70 char *label;
70 UiBool hexpand; 71 UiBool hexpand;
71 UiBool vexpand; 72 UiBool vexpand;
72 UiBool hfill; 73 UiBool hfill;
73 UiBool vfill; 74 UiBool vfill;
75 UiBool override_defaults;
74 int width; 76 int width;
75 int colspan; 77 int colspan;
76 int rowspan; 78 int rowspan;
77 }; 79 };
78 80
100 102
101 typedef struct UiGridContainer { 103 typedef struct UiGridContainer {
102 UiContainerPrivate container; 104 UiContainerPrivate container;
103 Dimension x; 105 Dimension x;
104 Dimension y; 106 Dimension y;
107 UiBool def_hexpand;
108 UiBool def_vexpand;
109 UiBool def_hfill;
110 UiBool def_vfill;
105 } UiGridContainer; 111 } UiGridContainer;
106 112
107 typedef struct UiTab { 113 typedef struct UiTab {
108 Widget tab_button; 114 Widget tab_button;
109 Widget child; 115 Widget child;
151 Widget ui_vbox_prepare(UiContainerPrivate *ctn, Arg *args, int *n); 157 Widget ui_vbox_prepare(UiContainerPrivate *ctn, Arg *args, int *n);
152 Widget ui_hbox_prepare(UiContainerPrivate *ctn, Arg *args, int *n); 158 Widget ui_hbox_prepare(UiContainerPrivate *ctn, Arg *args, int *n);
153 void ui_box_container_add(UiContainerPrivate *ctn, Widget widget); 159 void ui_box_container_add(UiContainerPrivate *ctn, Widget widget);
154 160
155 161
156 UiContainerX* ui_grid_container(UiObject *obj, Widget grid); 162 UiContainerX* ui_grid_container(
163 UiObject *obj,
164 Widget grid,
165 UiBool def_hexpand,
166 UiBool def_vexpand,
167 UiBool def_hfill,
168 UiBool def_vfill);
157 Widget ui_grid_container_prepare(UiContainerPrivate *ctn, Arg *args, int *n); 169 Widget ui_grid_container_prepare(UiContainerPrivate *ctn, Arg *args, int *n);
158 void ui_grid_container_add(UiContainerPrivate *ctn, Widget widget); 170 void ui_grid_container_add(UiContainerPrivate *ctn, Widget widget);
159 171
160 #ifdef __cplusplus 172 #ifdef __cplusplus
161 } 173 }

mercurial