62 UiContext *ctx; |
62 UiContext *ctx; |
63 int last_selection_state; |
63 int last_selection_state; |
64 } UiTextArea; |
64 } UiTextArea; |
65 |
65 |
66 char* ui_textarea_get(UiText *text); |
66 char* ui_textarea_get(UiText *text); |
67 void ui_textarea_set(UiText *text, char *str); |
67 void ui_textarea_set(UiText *text, const char *str); |
68 char* ui_textarea_getsubstr(UiText *text, int begin, int end); |
68 char* ui_textarea_getsubstr(UiText *text, int begin, int end); |
69 void ui_textarea_insert(UiText *text, int pos, char *str); |
69 void ui_textarea_insert(UiText *text, int pos, char *str); |
70 void ui_textarea_setposition(UiText *text, int pos); |
70 void ui_textarea_setposition(UiText *text, int pos); |
71 int ui_textarea_position(UiText *text); |
71 int ui_textarea_position(UiText *text); |
72 void ui_textarea_selection(UiText *text, int *begin, int *end); |
72 void ui_textarea_selection(UiText *text, int *begin, int *end); |