Method
GtkIMContextset_surrounding
Declaration [src]
void
gtk_im_context_set_surrounding (
GtkIMContext* context,
const gchar* text,
gint len,
gint cursor_index
)
Description [src]
Sets surrounding context around the insertion point and preedit string. This function is expected to be called in response to the GtkIMContext::retrieve_surrounding signal, and will likely have no effect if called at other times.
Parameters
text-
Type:
const gchar*Text surrounding the insertion point, as UTF-8. the preedit string should not be included within
text.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. len-
Type:
gintThe length of
text, or -1 iftextis nul-terminated. cursor_index-
Type:
gintThe byte index of the insertion cursor within
text.