ui/common/document.h

changeset 2
eeb50c534497
parent 1
eb5269000bc8
child 7
431dde3c5fbe
--- a/ui/common/document.h	Sun Dec 08 11:20:41 2013 +0000
+++ b/ui/common/document.h	Fri Mar 21 13:20:53 2014 +0100
@@ -41,12 +41,29 @@
 struct UiDocument {
     UiObject     *obj;
     UcxMempool   *mempool;
-    UcxAllocator *allocator;
     UcxMap       *vars; // key: char*  value: UiVar*
+    void         *subdocument;
 };
 
 void uic_docmgr_init();
+UiDocument* uic_getdocument(void *doc);
 UiVar* uic_document_getvar(UiDocument *doc, char *name);
+void uic_document_addvar(void *doc, char *name, int type, size_t vs);
+void uic_document_addvar_v(
+        UiDocument *uidoc,
+        char *name,
+        UiVar *newvar,
+        int type,
+        size_t vs);
+void uic_document_regvar(
+        void *doc,
+        char *name, 
+        int type,
+        size_t vs,
+        void *value);
+
+void uic_var_move(UiVar *from, UiVar *to, int set);
+
 
 
 #ifdef	__cplusplus

mercurial