ui/gtk/container.h

branch
newapi
changeset 422
c1354a29a7e9
parent 378
d41b1ffc5f77
equal deleted inserted replaced
421:3b969399f962 422:c1354a29a7e9
32 #include "../ui/toolkit.h" 32 #include "../ui/toolkit.h"
33 #include "../ui/container.h" 33 #include "../ui/container.h"
34 #include <string.h> 34 #include <string.h>
35 35
36 #include <cx/allocator.h> 36 #include <cx/allocator.h>
37 #include <cx/hash_map.h>
37 38
38 #ifdef __cplusplus 39 #ifdef __cplusplus
39 extern "C" { 40 extern "C" {
40 #endif 41 #endif
41 42
131 GtkWidget *centerbox; 132 GtkWidget *centerbox;
132 int part; 133 int part;
133 UiHeaderbarAlternative alternative; /* only used by fallback headerbar */ 134 UiHeaderbarAlternative alternative; /* only used by fallback headerbar */
134 } UiHeaderbarContainer; 135 } UiHeaderbarContainer;
135 136
137 typedef struct UiGtkItemListContainer {
138 UiObject *parent;
139 GtkWidget *widget;
140 UiContainer *container;
141 void (*create_ui)(UiObject *, int, void *, void *);
142 void *userdata;
143 UiSubContainerType subcontainer;
144 CxMap *current_items;
145 int margin;
146 int spacing;
147 int columnspacing;
148 int rowspacing;
149 bool remove_items;
150 } UiGtkItemListContainer;
151
136 GtkWidget* ui_gtk_vbox_new(int spacing); 152 GtkWidget* ui_gtk_vbox_new(int spacing);
137 GtkWidget* ui_gtk_hbox_new(int spacing); 153 GtkWidget* ui_gtk_hbox_new(int spacing);
138 154
139 GtkWidget* ui_subcontainer_create( 155 GtkWidget* ui_subcontainer_create(
140 UiSubContainerType type, 156 UiSubContainerType type,

mercurial