100 }; |
101 }; |
101 |
102 |
102 |
103 |
103 void uic_init_global_context(void); |
104 void uic_init_global_context(void); |
104 |
105 |
105 UiContext* uic_context(UiObject *toplevel, const CxAllocator *a); |
106 UiContext* uic_context(UiObject *toplevel, CxMempool *mp); |
106 UiContext* uic_root_context(UiContext *ctx); |
107 UiContext* uic_root_context(UiContext *ctx); |
107 void uic_context_set_document(UiContext *ctx, void *document); // deprecated |
108 void uic_context_set_document(UiContext *ctx, void *document); // deprecated |
108 void uic_context_detach_document(UiContext *ctx); // deprecated |
109 void uic_context_detach_document(UiContext *ctx); // deprecated |
109 |
110 |
110 void uic_context_attach_document(UiContext *ctx, void *document); |
111 void uic_context_attach_document(UiContext *ctx, void *document); |
111 void uic_context_detach_document2(UiContext *ctx, void *document); |
112 void uic_context_detach_document2(UiContext *ctx, void *document); |
112 void uic_context_detach_all(UiContext *ctx); |
113 void uic_context_detach_all(UiContext *ctx); |
113 |
114 |
114 UiVar* uic_get_var(UiContext *ctx, const char *name); |
115 UiVar* uic_get_var(UiContext *ctx, const char *name); |
115 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type); |
116 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type); |
|
117 UiVar* uic_create_value_var(UiContext *ctx, void *value); |
116 void* uic_create_value(UiContext *ctx, UiVarType type); |
118 void* uic_create_value(UiContext *ctx, UiVarType type); |
117 |
119 |
118 void uic_copy_binding(UiVar *from, UiVar *to, UiBool copytodoc); |
120 void uic_copy_binding(UiVar *from, UiVar *to, UiBool copytodoc); |
119 void uic_save_var2(UiVar *var); |
121 void uic_save_var2(UiVar *var); |
120 void uic_unbind_var(UiVar *var); |
122 void uic_unbind_var(UiVar *var); |