Virtual Method
Gtk.IMContext.set_surrounding
Declaration [src]
void
set_surrounding (
GtkIMContext* context,
const char* text,
int len,
int 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.
Deprecated since: | 4.2 |
Use |
Parameters
text |
const char* |
text surrounding the insertion point, as UTF-8.
the preedit string should not be included within
|
|
Ownership is not transferred to the callee | |
The string is a NUL terminated UTF-8 string | |
len |
int |
the length of |
|
cursor_index |
int |
the byte index of the insertion cursor within |