update_preedit_text_with_mode


Description:

public void update_preedit_text_with_mode (Text text, uint cursor_pos, bool visible, PreeditFocusMode mode)

Update the pre-edit buffer with commit mode.

Similar to update_preedit_text, this function allows users to specify the behavior on focus out when the pre-edit buffer is visible.

If mode is IBUS_ENGINE_PREEDIT_COMMIT, contents of the pre-edit buffer will be comitted and cleared. If mode is IBUS_ENGINE_PREEDIT_CLEAR, contents of the pre-edit buffer will be cleared only.

(Note: The text object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by g_object_ref_sink.)

Parameters:

this

An IBusEngine.

text

Update content.

cursor_pos

Current position of cursor

visible

Whether the pre-edit buffer is visible.

mode

Pre-edit commit mode when the focus is lost.




2022 vala-language.org