ui/server/toolkit.h

changeset 982
9102a53c5385
parent 981
1d47e71f26b6
child 985
93f07ccfd997
--- a/ui/server/toolkit.h	Mon Dec 08 18:11:54 2025 +0100
+++ b/ui/server/toolkit.h	Wed Dec 10 19:04:46 2025 +0100
@@ -62,7 +62,11 @@
 };
 
 struct UiSrvObj {
+    UiContext *ctx;
     cxmutstr id;
+    
+    CxMap *widgets;
+    uint64_t widget_id_counter;
 };
 
 struct UiWidget {
@@ -75,11 +79,15 @@
     cxmutstr args;
     UiBool visible;
     UiBool enabled;
-    ui_serialize_func *serialize;
+    UiBool sent;
+    ui_serialize_func serialize;
 };
 
 void ui_server_message_received(cxstring msg);
 
+UiSrvObj* ui_create_server_object(UiContext *ctx);
+void ui_reg_widget(UiWidget *widget);
+
 
 #ifdef	__cplusplus
 }

mercurial