ui/gtk/container.h

changeset 465
00735562b25b
parent 456
6712b08e4f74
child 483
069fca2a47c2
equal deleted inserted replaced
464:e06714e6fa12 465:00735562b25b
64 char *label; 64 char *label;
65 UiBool hexpand; 65 UiBool hexpand;
66 UiBool vexpand; 66 UiBool vexpand;
67 UiBool hfill; 67 UiBool hfill;
68 UiBool vfill; 68 UiBool vfill;
69 UiBool override_defaults;
69 int width; 70 int width;
70 int colspan; 71 int colspan;
71 int rowspan; 72 int rowspan;
72 }; 73 };
73 74
88 UiBool has_fill; 89 UiBool has_fill;
89 } UiBoxContainer; 90 } UiBoxContainer;
90 91
91 typedef struct UiGridContainer { 92 typedef struct UiGridContainer {
92 UiContainer container; 93 UiContainer container;
94 UiBool def_hexpand;
95 UiBool def_vexpand;
96 UiBool def_hfill;
97 UiBool def_vfill;
93 int x; 98 int x;
94 int y; 99 int y;
95 #ifdef UI_GTK2 100 #ifdef UI_GTK2
96 int width; 101 int width;
97 int height; 102 int height;
169 174
170 UiContainer* ui_box_container(UiObject *obj, GtkWidget *box, UiSubContainerType type); 175 UiContainer* ui_box_container(UiObject *obj, GtkWidget *box, UiSubContainerType type);
171 void ui_box_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill); 176 void ui_box_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill);
172 177
173 GtkWidget* ui_create_grid_widget(int colspacing, int rowspacing); 178 GtkWidget* ui_create_grid_widget(int colspacing, int rowspacing);
174 UiContainer* ui_grid_container(UiObject *obj, GtkWidget *grid); 179 UiContainer* ui_grid_container(
180 UiObject *obj,
181 GtkWidget *grid,
182 UiBool def_hexpand,
183 UiBool def_vexpand,
184 UiBool def_hfill,
185 UiBool def_vfill);
175 void ui_grid_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill); 186 void ui_grid_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill);
176 187
177 UiContainer* ui_frame_container(UiObject *obj, GtkWidget *frame); 188 UiContainer* ui_frame_container(UiObject *obj, GtkWidget *frame);
178 void ui_frame_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill); 189 void ui_frame_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill);
179 190

mercurial