set_surrounding_with_selection


Description:

[ Version ( since = "4.2" ) ]
public virtual void set_surrounding_with_selection (string text, int len, int cursor_index, int anchor_index)

Sets surrounding context around the insertion point and preedit string.

This function is expected to be called in response to the [[email protected]:GtkIMContext:retrieve_surrounding] signal, and will likely have no effect if called at other times.

Parameters:

this

a `GtkIMContext`

text

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

len

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

cursor_index

the byte index of the insertion cursor within text

anchor_index

the byte index of the selection bound within text




2022 vala-language.org