ui/ui/container.h

branch
newapi
changeset 404
384f6d1f5784
parent 378
d41b1ffc5f77
child 409
86fbc80f0be7
--- a/ui/ui/container.h	Sat Nov 30 20:33:16 2024 +0100
+++ b/ui/ui/container.h	Wed Dec 04 08:55:49 2024 +0100
@@ -142,6 +142,13 @@
 } UiHeaderbarArgs;
 
 
+struct UiContainerX {
+    void *container;
+    int close;
+    UiContainerX *prev;
+    UiContainerX *next;
+};
+
 
 #define UI_CTN(obj, ctn) for(ctn;ui_container_finish(obj);ui_container_begin_close(obj))
 
@@ -169,7 +176,8 @@
 #define ui_headerbar_center(obj) for(ui_headerbar_center_create(obj);ui_container_finish(obj);ui_container_begin_close(obj))
 #define ui_headerbar_end(obj) for(ui_headerbar_end_create(obj);ui_container_finish(obj);ui_container_begin_close(obj))
 
-UIEXPORT void ui_end(UiObject *obj);
+UIEXPORT void ui_end(UiObject *obj); // deprecated
+UIEXPORT void ui_end_new(UiObject *obj); // TODO: rename to ui_end
     
 UIEXPORT UIWIDGET ui_vbox_create(UiObject *obj, UiContainerArgs args);
 UIEXPORT UIWIDGET ui_hbox_create(UiObject *obj, UiContainerArgs args);

mercurial