notify_surrounding


Description:

public virtual void notify_surrounding (string text, uint length, uint cursor_index, uint selection_index)

Notify this that the context surrounding the cursor has changed.

If there's no selection selection_index is the same as cursor_index.

Parameters:

this

a InputMethodContext

text

text surrounding the insertion point

length

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

cursor_index

the byte index of the insertion cursor within text.

selection_index

the byte index of the selection cursor within text.