| 151 void uic_context_detach_document(UiContext *ctx, void *document); |
151 void uic_context_detach_document(UiContext *ctx, void *document); |
| 152 void uic_context_attach_context(UiContext *ctx, UiContext *doc_ctx); // TODO |
152 void uic_context_attach_context(UiContext *ctx, UiContext *doc_ctx); // TODO |
| 153 void uic_context_detach_context(UiContext *ctx, UiContext *doc_ctx); // TODO |
153 void uic_context_detach_context(UiContext *ctx, UiContext *doc_ctx); // TODO |
| 154 void uic_context_detach_all(UiContext *ctx); |
154 void uic_context_detach_all(UiContext *ctx); |
| 155 |
155 |
| 156 void uic_send_status_change(UiContext *ctx); |
156 void uic_send_status_change(UiContext *ctx, UiObject *obj); |
| 157 |
157 |
| 158 UiVar* uic_get_var(UiContext *ctx, const char *name); |
158 UiVar* uic_get_var(UiContext *ctx, const char *name); |
| 159 UiVar* uic_get_var_t(UiContext *ctx, const char *name, UiVarType type); |
159 UiVar* uic_get_var_t(UiContext *ctx, const char *name, UiVarType type); |
| 160 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type); |
160 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type); |
| 161 UiVar* uic_create_value_var(UiContext *ctx, void *value); |
161 UiVar* uic_create_value_var(UiContext *ctx, void *value); |
| 177 void uic_check_state_widgets(UiContext *ctx); |
177 void uic_check_state_widgets(UiContext *ctx); |
| 178 void uic_add_state_widget(UiContext *ctx, void *widget, ui_enablefunc enable, CxList *states); |
178 void uic_add_state_widget(UiContext *ctx, void *widget, ui_enablefunc enable, CxList *states); |
| 179 void uic_add_state_widget_i(UiContext *ctx, void *widget, ui_enablefunc enable, const int *states, size_t numstates); |
179 void uic_add_state_widget_i(UiContext *ctx, void *widget, ui_enablefunc enable, const int *states, size_t numstates); |
| 180 void uic_remove_state_widget(UiContext *ctx, void *widget); |
180 void uic_remove_state_widget(UiContext *ctx, void *widget); |
| 181 |
181 |
| |
182 UiContext* uic_obj_context(UiContext *ctx); |
| |
183 |
| 182 UIEXPORT void ui_context_onattach(UiContext *ctx, ui_callback cb, void *data); |
184 UIEXPORT void ui_context_onattach(UiContext *ctx, ui_callback cb, void *data); |
| 183 UIEXPORT void ui_context_ondetach(UiContext *ctx, ui_callback cb, void *data); |
185 UIEXPORT void ui_context_ondetach(UiContext *ctx, ui_callback cb, void *data); |
| 184 UIEXPORT void ui_context_onattachmentstatuschange(UiContext *ctx, ui_callback cb, void *data); |
186 UIEXPORT void ui_context_onattachmentstatuschange(UiContext *ctx, ui_callback cb, void *data); |
| 185 UIEXPORT void ui_context_onattach_action(UiContext *ctx, const char *action); |
187 UIEXPORT void ui_context_onattach_action(UiContext *ctx, const char *action); |
| 186 UIEXPORT void ui_context_ondetach_action(UiContext *ctx, const char *action); |
188 UIEXPORT void ui_context_ondetach_action(UiContext *ctx, const char *action); |
| 187 UIEXPORT void ui_context_onattachmentstatuschange_action(UiContext *ctx, const char *action); |
189 UIEXPORT void ui_context_onattachmentstatuschange_action(UiContext *ctx, const char *action); |
| 188 |
190 |
| 189 UIEXPORT int ui_context_is_attached(UiContext *ctx); |
191 UIEXPORT int ui_context_is_attached(UiContext *ctx); |
| 190 UIEXPORT int ui_context_is_attached_to_obj(UiContext *ctx); |
192 UIEXPORT int ui_context_is_attached_to_obj(UiContext *ctx); |
| |
193 UIEXPORT UiObject* ui_context_get_parent_obj(UiContext *ctx); |
| 191 |
194 |
| 192 #ifdef __cplusplus |
195 #ifdef __cplusplus |
| 193 } |
196 } |
| 194 #endif |
197 #endif |
| 195 |
198 |