add ui_scrolledwindow_w macro

3 days ago

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 31 Mar 2025 21:16:08 +0200 (3 days ago)
changeset 543
2b38cff00983
parent 542
af268fbe676a
child 544
d241dcb2cbb5

add ui_scrolledwindow_w macro

ui/ui/container.h file | annotate | diff | comparison | revisions
--- a/ui/ui/container.h	Mon Mar 31 21:14:32 2025 +0200
+++ b/ui/ui/container.h	Mon Mar 31 21:16:08 2025 +0200
@@ -259,6 +259,7 @@
 #define ui_hbox_w(obj, w, ...) for(w = ui_hbox_create(obj, (UiContainerArgs){ __VA_ARGS__ });ui_container_finish(obj);ui_container_begin_close(obj))
 #define ui_grid_w(obj, w, ...) for(w = ui_grid_create(obj, (UiContainerArgs){ __VA_ARGS__ });ui_container_finish(obj);ui_container_begin_close(obj))
 #define ui_tabview_w(obj, w, ...) for(w = ui_tabview_create(obj, (UiTabViewArgs){ __VA_ARGS__ });ui_container_finish(obj);ui_container_begin_close(obj))
+#define ui_scrolledwindow_w(obj, w, ...) for(w = ui_scrolledwindow_create(obj, (UiFrameArgs){ __VA_ARGS__ });ui_container_finish(obj);ui_container_begin_close(obj))
 
 #define ui_hsplitpane(obj, ...) for(ui_hsplitpane_create(obj, (UiSplitPaneArgs){ __VA_ARGS__ });ui_container_finish(obj);ui_container_begin_close(obj))
 #define ui_vsplitpane(obj, ...) for(ui_vsplitpane_create(obj, (UiSplitPaneArgs){ __VA_ARGS__ });ui_container_finish(obj);ui_container_begin_close(obj))

mercurial