| 125 void uic_context_attach_context(UiContext *ctx, UiContext *doc_ctx); // TODO |
128 void uic_context_attach_context(UiContext *ctx, UiContext *doc_ctx); // TODO |
| 126 void uic_context_detach_context(UiContext *ctx, UiContext *doc_ctx); // TODO |
129 void uic_context_detach_context(UiContext *ctx, UiContext *doc_ctx); // TODO |
| 127 void uic_context_detach_all(UiContext *ctx); |
130 void uic_context_detach_all(UiContext *ctx); |
| 128 |
131 |
| 129 UiVar* uic_get_var(UiContext *ctx, const char *name); |
132 UiVar* uic_get_var(UiContext *ctx, const char *name); |
| |
133 UiVar* uic_get_var_t(UiContext *ctx, const char *name, UiVarType type); |
| 130 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type); |
134 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type); |
| 131 UiVar* uic_create_value_var(UiContext *ctx, void *value); |
135 UiVar* uic_create_value_var(UiContext *ctx, void *value); |
| 132 void* uic_create_value(UiContext *ctx, UiVarType type); |
136 void* uic_create_value(UiContext *ctx, UiVarType type); |
| |
137 void uic_destroy_value(UiContext *ctx, UiVarType type, void *value); |
| 133 |
138 |
| 134 UiVar* uic_widget_var(UiContext *toplevel, UiContext *current, void *value, const char *varname, UiVarType type); |
139 UiVar* uic_widget_var(UiContext *toplevel, UiContext *current, void *value, const char *varname, UiVarType type); |
| 135 |
140 |
| 136 void uic_copy_binding(UiVar *from, UiVar *to, UiBool copytodoc); |
141 void uic_copy_var_binding(UiVar *from, UiVar *to, UiBool copytodoc); |
| |
142 void uic_copy_value_binding(UiVarType type, void *from, void *to); |
| 137 void uic_save_var(UiVar *var); |
143 void uic_save_var(UiVar *var); |
| 138 void uic_unbind_var(UiVar *var); |
144 void uic_unbind_var(UiVar *var); |
| |
145 const char *uic_type2str(UiVarType type); |
| 139 |
146 |
| 140 void uic_reg_var(UiContext *ctx, const char *name, UiVarType type, void *value); |
147 void uic_reg_var(UiContext *ctx, const char *name, UiVarType type, void *value); |
| 141 |
148 |
| 142 void uic_remove_bound_var(UiContext *ctx, UiVar *var); |
149 size_t uic_state_array_size(const int *states); |
| 143 |
150 void uic_check_state_widgets(UiContext *ctx); |
| 144 size_t uic_group_array_size(const int *groups); |
151 void uic_add_state_widget(UiContext *ctx, void *widget, ui_enablefunc enable, CxList *states); |
| 145 void uic_check_group_widgets(UiContext *ctx); |
152 void uic_add_state_widget_i(UiContext *ctx, void *widget, ui_enablefunc enable, const int *states, size_t numstates); |
| 146 void uic_add_group_widget(UiContext *ctx, void *widget, ui_enablefunc enable, CxList *groups); |
153 void uic_remove_state_widget(UiContext *ctx, void *widget); |
| 147 void uic_add_group_widget_i(UiContext *ctx, void *widget, ui_enablefunc enable, const int *groups, size_t numgroups); |
|
| 148 void uic_remove_group_widget(UiContext *ctx, void *widget); |
|
| 149 |
154 |
| 150 #ifdef __cplusplus |
155 #ifdef __cplusplus |
| 151 } |
156 } |
| 152 #endif |
157 #endif |
| 153 |
158 |