95 int *groups; |
95 int *groups; |
96 int numgroups; |
96 int numgroups; |
97 }; |
97 }; |
98 |
98 |
99 |
99 |
|
100 void uic_init_global_context(void); |
|
101 |
100 UiContext* uic_context(UiObject *toplevel, UcxMempool *mp); |
102 UiContext* uic_context(UiObject *toplevel, UcxMempool *mp); |
101 UiContext* uic_root_context(UiContext *ctx); |
103 UiContext* uic_root_context(UiContext *ctx); |
102 void uic_context_set_document(UiContext *ctx, void *document); // deprecated |
104 void uic_context_set_document(UiContext *ctx, void *document); // deprecated |
103 void uic_context_detach_document(UiContext *ctx); // deprecated |
105 void uic_context_detach_document(UiContext *ctx); // deprecated |
104 |
106 |
105 void uic_context_attach_document(UiContext *ctx, void *document); |
107 void uic_context_attach_document(UiContext *ctx, void *document); |
106 void uic_context_detach_document2(UiContext *ctx, void *document); |
108 void uic_context_detach_document2(UiContext *ctx, void *document); |
107 void uic_context_detach_all(UiContext *ctx); |
109 void uic_context_detach_all(UiContext *ctx); |
108 |
110 |
109 UiVar* uic_get_var(UiContext *ctx, char *name); |
111 UiVar* uic_get_var(UiContext *ctx, const char *name); |
110 UiVar* uic_create_var(UiContext *ctx, char *name, UiVarType type); |
112 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type); |
111 void* uic_create_value(UiContext *ctx, UiVarType type); |
113 void* uic_create_value(UiContext *ctx, UiVarType type); |
112 |
114 |
113 void uic_copy_binding(UiVar *from, UiVar *to, UiBool copytodoc); |
115 void uic_copy_binding(UiVar *from, UiVar *to, UiBool copytodoc); |
114 void uic_save_var2(UiVar *var); |
116 void uic_save_var2(UiVar *var); |
115 void uic_unbind_var(UiVar *var); |
117 void uic_unbind_var(UiVar *var); |