IMContext.setSurrounding

Sets surrounding context around the insertion point and preedit string.

This function is expected to be called in response to the [signal@Gtk.IMContext::retrieve-surrounding] signal, and will likely have no effect if called at other times.

More...
class IMContext
void
setSurrounding
(
string text
,
int len
,)

Parameters

text string

text surrounding the insertion point, as UTF-8. the preedit string should not be included within @text.

len int

the length of @text, or -1 if @text is nul-terminated

cursorIndex int

the byte index of the insertion cursor within @text.

Detailed Description

Deprecated: Use [method@Gtk.IMContext.set_surrounding_with_selection] instead

Meta