InputMethodContext.notifySurrounding

Notify @context that the context surrounding the cursor has changed. If there's no selection @selection_index is the same as @cursor_index.

class InputMethodContext
void
notifySurrounding
(
string text
,
int length
,,)

Parameters

text string

text surrounding the insertion point

length int

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

cursorIndex uint

the byte index of the insertion cursor within @text.

selectionIndex uint

the byte index of the selection cursor within @text.

Meta

Since

2.28