get_surrounding_text


Description:

public void get_surrounding_text (out unowned Text text, out uint cursor_pos, out uint anchor_pos)

Get surrounding text.

It is also used to tell the input-context that the engine will utilize surrounding-text. In that case, it must be called in enable handler, with both text and cursor set to null.

See also: set_surrounding_text

Parameters:

this

An IBusEngine.

text

Location to store surrounding text.

cursor_pos

Cursor position in characters in text.

anchor_pos

Anchor position of selection in text.