39 typedef struct UiDocument UiDocument; |
39 typedef struct UiDocument UiDocument; |
40 |
40 |
41 struct UiDocument { |
41 struct UiDocument { |
42 UiObject *obj; |
42 UiObject *obj; |
43 UcxMempool *mempool; |
43 UcxMempool *mempool; |
44 UcxAllocator *allocator; |
|
45 UcxMap *vars; // key: char* value: UiVar* |
44 UcxMap *vars; // key: char* value: UiVar* |
|
45 void *subdocument; |
46 }; |
46 }; |
47 |
47 |
48 void uic_docmgr_init(); |
48 void uic_docmgr_init(); |
|
49 UiDocument* uic_getdocument(void *doc); |
49 UiVar* uic_document_getvar(UiDocument *doc, char *name); |
50 UiVar* uic_document_getvar(UiDocument *doc, char *name); |
|
51 void uic_document_addvar(void *doc, char *name, int type, size_t vs); |
|
52 void uic_document_addvar_v( |
|
53 UiDocument *uidoc, |
|
54 char *name, |
|
55 UiVar *newvar, |
|
56 int type, |
|
57 size_t vs); |
|
58 void uic_document_regvar( |
|
59 void *doc, |
|
60 char *name, |
|
61 int type, |
|
62 size_t vs, |
|
63 void *value); |
|
64 |
|
65 void uic_var_move(UiVar *from, UiVar *to, int set); |
|
66 |
50 |
67 |
51 |
68 |
52 #ifdef __cplusplus |
69 #ifdef __cplusplus |
53 } |
70 } |
54 #endif |
71 #endif |