ui/gtk/text.h

changeset 1153
f15375e0480c
parent 1149
76b7664f951e
equal deleted inserted replaced
1152:f560b35c8ca1 1153:f15375e0480c
65 UiContext *ctx; 65 UiContext *ctx;
66 UiVar *var; 66 UiVar *var;
67 int last_selection_state; 67 int last_selection_state;
68 ui_callback onchange; 68 ui_callback onchange;
69 void *onchangedata; 69 void *onchangedata;
70 char *action; 70 char *onchange_action;
71 ui_callback ontextchanged;
72 void *ontextchangeddata;
73 char *ontextchanged_action;
71 } UiTextArea; 74 } UiTextArea;
72 75
73 typedef struct UiTextField { 76 typedef struct UiTextField {
74 UiObject *obj; 77 UiObject *obj;
75 UiVar *var; 78 UiVar *var;
130 int ui_textarea_length(UiText *text); 133 int ui_textarea_length(UiText *text);
131 void ui_textarea_remove(UiText *text, int begin, int end); 134 void ui_textarea_remove(UiText *text, int begin, int end);
132 135
133 void ui_textarea_realize_event(GtkWidget *widget, gpointer data); 136 void ui_textarea_realize_event(GtkWidget *widget, gpointer data);
134 //void ui_textbuf_changed(GtkTextBuffer *textbuffer, UiTextArea *textarea); 137 //void ui_textbuf_changed(GtkTextBuffer *textbuffer, UiTextArea *textarea);
135 void ui_textbuf_changed_insert( 138 void ui_textbuf_change_insert(
136 GtkTextBuffer *textbuffer, 139 GtkTextBuffer *textbuffer,
137 GtkTextIter *location, 140 GtkTextIter *location,
138 char *text, 141 char *text,
139 int length, 142 int length,
140 UiTextArea *textarea); 143 UiTextArea *textarea);
141 void ui_textbuf_changed_delete( 144 void ui_textbuf_change_delete(
142 GtkTextBuffer *self, 145 GtkTextBuffer *self,
143 const GtkTextIter *start, 146 const GtkTextIter *start,
144 const GtkTextIter *end, 147 const GtkTextIter *end,
145 UiTextArea *textarea); 148 UiTextArea *textarea);
146 void ui_textbuf_changed(UiTextArea *textarea, UiTextChangeEventData *data); 149
150 void ui_textbuf_changed(GtkTextBuffer *textbuffer, UiTextArea *textarea);
147 151
148 void ui_textbuf_insert( 152 void ui_textbuf_insert(
149 GtkTextBuffer *textbuffer, 153 GtkTextBuffer *textbuffer,
150 GtkTextIter *location, 154 GtkTextIter *location,
151 char *text, 155 char *text,

mercurial