ui/common/context.h

changeset 37
56016468753d
parent 33
458831c574f4
child 52
25e5390cce41
--- a/ui/common/context.h	Sun May 11 11:35:33 2014 +0200
+++ b/ui/common/context.h	Thu May 15 15:53:29 2014 +0200
@@ -44,9 +44,10 @@
 typedef struct UiGroupWidget UiGroupWidget;
 
 struct UiContext {
-    UiObject      *toplevel;
+    UiObject      *obj;
     UcxMempool    *mempool;
     UcxMap        *vars; // key: char*  value: UiVar*
+    void          *document;
     UcxList       *groups; // int list
     UcxList       *group_widgets; // UiGroupWidget* list
     
@@ -84,8 +85,17 @@
 };
 
 UiContext* uic_context(UiObject *toplevel, UcxMempool *mp);
-UiVar* uic_getvar(UiContext *ctx, char *name);
+UiVar* uic_get_var(UiContext *ctx, char *name);
 UiVar* uic_connect_var(UiContext *ctx, char *name, int type);
+void uic_move_var(UiVar *from, UiVar *to, int set);
+void uic_reg_var(UiContext *ctx, char *name, int type, size_t vs, void *value);
+void uic_add_var(
+        UiContext *ctx,
+        char *name,
+        UiVar *newvar,
+        int type,
+        size_t vs);
+
 void* uic_create_value(UcxAllocator *a, int type);
 
 void uic_check_group_widgets(UiContext *ctx);

mercurial