set_surrounding_text


Description:

public virtual signal void set_surrounding_text (Object text, uint cursor_index, uint anchor_pos)

Emitted when a surrounding text is set.

Implement the member function IBusEngineClass::set_surrounding_text in extended class to receive this signal. If anchor_pos equals to cursor_pos, it means "there are no selection" or "does not support selection retrival".

Note:

Argument user_data is ignored in this function.

Parameters:

text

The surrounding text.

anchor_pos

The anchor position on selection area.

cursor_pos

The cursor position on surrounding text.