ui/server/window.h

changeset 982
9102a53c5385
parent 981
1d47e71f26b6
child 991
ab3125bd8b5f
--- a/ui/server/window.h	Mon Dec 08 18:11:54 2025 +0100
+++ b/ui/server/window.h	Wed Dec 10 19:04:46 2025 +0100
@@ -36,8 +36,21 @@
 extern "C" {
 #endif
 
+enum UiWindowType {
+    UI_WINDOW_MAIN = 0,
+    UI_WINDOW_SIMPLE,
+    UI_WINDOW_SIDEBAR,
+    UI_WINDOW_SPLITVIEW
+};
+typedef enum UiWindowType UiWindowType;
 
+typedef struct UiWindow {
+    UiWidget widget;
+    UiWindowType type;
+    cxmutstr title;
+} UiWindow;
 
+cxmutstr ui_window_serialize(UiWindow *w);
 
 #ifdef __cplusplus
 }

mercurial