140 char* (*get)(UiText*); |
140 char* (*get)(UiText*); |
141 char* (*getsubstr)(UiText*, int, int); // text, begin, end |
141 char* (*getsubstr)(UiText*, int, int); // text, begin, end |
142 void (*insert)(UiText*, int, char*); |
142 void (*insert)(UiText*, int, char*); |
143 int (*position)(UiText*); |
143 int (*position)(UiText*); |
144 void (*selection)(UiText*, int*, int*); // text, begin, end |
144 void (*selection)(UiText*, int*, int*); // text, begin, end |
|
145 int (*length)(UiText*); |
145 char *value; |
146 char *value; |
146 void *obj; |
147 void *obj; |
147 void *undomgr; |
148 void *undomgr; |
148 // TODO: selection, undo, replace, ... |
149 // TODO: selection, undo, replace, ... |
149 }; |
150 }; |
168 void *data; |
169 void *data; |
169 |
170 |
170 }; |
171 }; |
171 |
172 |
172 void ui_init(char *appname, int argc, char **argv); |
173 void ui_init(char *appname, int argc, char **argv); |
173 void ui_exitfunc(ui_callback f, void *udata); |
|
174 char* ui_appname(); |
174 char* ui_appname(); |
|
175 |
|
176 void ui_exitfunc(ui_callback f, void *userdata); |
|
177 void ui_openfilefunc(ui_callback f, void *userdata); |
175 |
178 |
176 void ui_main(); |
179 void ui_main(); |
177 void ui_show(UiObject *obj); |
180 void ui_show(UiObject *obj); |
178 void ui_set_enabled(UIWIDGET widget, int enabled); |
181 void ui_set_enabled(UIWIDGET widget, int enabled); |
179 |
182 |