34 |
34 |
35 #ifdef __cplusplus |
35 #ifdef __cplusplus |
36 extern "C" { |
36 extern "C" { |
37 #endif |
37 #endif |
38 |
38 |
39 typedef struct UiDocument UiDocument; |
|
40 |
|
41 struct UiDocument { |
|
42 UiObject *obj; |
|
43 UcxMempool *mempool; |
|
44 UcxMap *vars; // key: char* value: UiVar* |
|
45 void *subdocument; |
|
46 }; |
|
47 |
|
48 void uic_docmgr_init(); |
39 void uic_docmgr_init(); |
49 UiDocument* uic_getdocument(void *doc); |
|
50 UiVar* uic_document_getvar(UiDocument *doc, char *name); |
|
51 void uic_document_addvar(void *doc, char *name, int type, size_t vs); |
40 void uic_document_addvar(void *doc, char *name, int type, size_t vs); |
52 void uic_document_addvar_v( |
41 void uic_document_addvar_v( |
53 UiDocument *uidoc, |
42 UiContext *uidoc, |
54 char *name, |
43 char *name, |
55 UiVar *newvar, |
44 UiVar *newvar, |
56 int type, |
45 int type, |
57 size_t vs); |
46 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 |
47 |
67 |
48 |
68 |
49 |
69 #ifdef __cplusplus |
50 #ifdef __cplusplus |
70 } |
51 } |