ui/common/context.h

changeset 1200
abb4d3851061
parent 1198
5bb4366b0c32
--- a/ui/common/context.h	Sun Jun 14 11:17:45 2026 +0200
+++ b/ui/common/context.h	Sun Jun 14 12:10:34 2026 +0200
@@ -104,6 +104,9 @@
     ui_callback   ondetach;
     void          *ondetachdata;
     
+    ui_callback   onattachmentstatuschange;
+    void          *onattachmentstatuschangedata;
+    
     ui_callback   onclose;
     void          *onclosedata;
     
@@ -149,6 +152,8 @@
 void uic_context_detach_context(UiContext *ctx, UiContext *doc_ctx); // TODO
 void uic_context_detach_all(UiContext *ctx);
 
+void uic_send_status_change(UiContext *ctx);
+
 UiVar* uic_get_var(UiContext *ctx, const char *name);
 UiVar* uic_get_var_t(UiContext *ctx, const char *name, UiVarType type);
 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type);
@@ -175,8 +180,13 @@
 
 UIEXPORT void ui_context_onattach(UiContext *ctx, ui_callback cb, void *data);
 UIEXPORT void ui_context_ondetach(UiContext *ctx, ui_callback cb, void *data);
+UIEXPORT void ui_context_onattachmentstatuschange(UiContext *ctx, ui_callback cb, void *data);
 UIEXPORT void ui_context_onattach_action(UiContext *ctx, const char *action);
 UIEXPORT void ui_context_ondetach_action(UiContext *ctx, const char *action);
+UIEXPORT void ui_context_onattachmentstatuschange_action(UiContext *ctx, const char *action);
+
+UIEXPORT int ui_context_is_attached(UiContext *ctx);
+UIEXPORT int ui_context_is_attached_to_obj(UiContext *ctx);
 
 #ifdef	__cplusplus
 }

mercurial