138 struct UiText { |
138 struct UiText { |
139 void (*set)(UiText*, char*); |
139 void (*set)(UiText*, char*); |
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*); |
|
144 void (*selection)(UiText*, int*, int*); // text, begin, end |
143 char *value; |
145 char *value; |
144 void *obj; |
146 void *obj; |
145 void *undomgr; |
147 void *undomgr; |
146 // TODO: selection, undo, replace, ... |
148 // TODO: selection, undo, replace, ... |
147 }; |
149 }; |
216 void ui_list_append(UiList *list, void *data); |
218 void ui_list_append(UiList *list, void *data); |
217 void ui_list_prepend(UiList *list, void *data); |
219 void ui_list_prepend(UiList *list, void *data); |
218 void ui_list_addobsv(UiList *list, ui_callback f, void *data); |
220 void ui_list_addobsv(UiList *list, ui_callback f, void *data); |
219 void ui_list_notify(UiList *list); |
221 void ui_list_notify(UiList *list); |
220 |
222 |
|
223 void ui_clipboard_set(char *str); |
|
224 char* ui_clipboard_get(); |
221 |
225 |
222 #ifdef __cplusplus |
226 #ifdef __cplusplus |
223 } |
227 } |
224 #endif |
228 #endif |
225 |
229 |