ui/common/context.h

changeset 902
6872b59217a7
parent 796
4d04cb879daa
child 960
e88ca7dfa943
equal deleted inserted replaced
901:884d70e847a3 902:6872b59217a7
95 void *value; 95 void *value;
96 void *original_value; 96 void *original_value;
97 UiVarType type; 97 UiVarType type;
98 UiVar *from; 98 UiVar *from;
99 UiContext *from_ctx; 99 UiContext *from_ctx;
100 UiBool bound;
100 }; 101 };
101 102
102 struct UiGroupWidget { 103 struct UiGroupWidget {
103 void *widget; 104 void *widget;
104 ui_enablefunc enable; 105 ui_enablefunc enable;
128 129
129 UiVar* uic_get_var(UiContext *ctx, const char *name); 130 UiVar* uic_get_var(UiContext *ctx, const char *name);
130 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type); 131 UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type);
131 UiVar* uic_create_value_var(UiContext *ctx, void *value); 132 UiVar* uic_create_value_var(UiContext *ctx, void *value);
132 void* uic_create_value(UiContext *ctx, UiVarType type); 133 void* uic_create_value(UiContext *ctx, UiVarType type);
134 void uic_destroy_value(UiContext *ctx, UiVarType type, void *value);
133 135
134 UiVar* uic_widget_var(UiContext *toplevel, UiContext *current, void *value, const char *varname, UiVarType type); 136 UiVar* uic_widget_var(UiContext *toplevel, UiContext *current, void *value, const char *varname, UiVarType type);
135 137
136 void uic_copy_binding(UiVar *from, UiVar *to, UiBool copytodoc); 138 void uic_copy_var_binding(UiVar *from, UiVar *to, UiBool copytodoc);
139 void uic_copy_value_binding(UiVarType type, void *from, void *to);
137 void uic_save_var(UiVar *var); 140 void uic_save_var(UiVar *var);
138 void uic_unbind_var(UiVar *var); 141 void uic_unbind_var(UiVar *var);
142 const char *uic_type2str(UiVarType type);
139 143
140 void uic_reg_var(UiContext *ctx, const char *name, UiVarType type, void *value); 144 void uic_reg_var(UiContext *ctx, const char *name, UiVarType type, void *value);
141
142 void uic_remove_bound_var(UiContext *ctx, UiVar *var);
143 145
144 size_t uic_group_array_size(const int *groups); 146 size_t uic_group_array_size(const int *groups);
145 void uic_check_group_widgets(UiContext *ctx); 147 void uic_check_group_widgets(UiContext *ctx);
146 void uic_add_group_widget(UiContext *ctx, void *widget, ui_enablefunc enable, CxList *groups); 148 void uic_add_group_widget(UiContext *ctx, void *widget, ui_enablefunc enable, CxList *groups);
147 void uic_add_group_widget_i(UiContext *ctx, void *widget, ui_enablefunc enable, const int *groups, size_t numgroups); 149 void uic_add_group_widget_i(UiContext *ctx, void *widget, ui_enablefunc enable, const int *groups, size_t numgroups);

mercurial