ui/gtk/container.h

changeset 101
7b3a3130be44
parent 75
73c8a3780c72
--- a/ui/gtk/container.h	Thu Dec 12 20:01:43 2024 +0100
+++ b/ui/gtk/container.h	Mon Jan 06 22:22:55 2025 +0100
@@ -34,6 +34,7 @@
 #include <string.h>
 
 #include <cx/allocator.h>
+#include <cx/hash_map.h>
 
 #ifdef	__cplusplus
 extern "C" {
@@ -133,6 +134,21 @@
     UiHeaderbarAlternative alternative; /* only used by fallback headerbar */
 } UiHeaderbarContainer;
 
+typedef struct UiGtkItemListContainer {
+    UiObject *parent;
+    GtkWidget *widget;
+    UiContainer *container;
+    void (*create_ui)(UiObject *, int, void *, void *);
+    void *userdata;
+    UiSubContainerType subcontainer;
+    CxMap *current_items;
+    int margin;
+    int spacing;
+    int columnspacing;
+    int rowspacing;
+    bool remove_items;
+} UiGtkItemListContainer;
+
 GtkWidget* ui_gtk_vbox_new(int spacing);
 GtkWidget* ui_gtk_hbox_new(int spacing);
 

mercurial