set_preedit_string


Description:

[ Version ( since = "1.2" ) ]
public void set_preedit_string (string? preedit_str, AttrList? preedit_attrs, uint cursor_pos)

Sets, or unsets, the pre-edit string.

This function is useful for input methods to display a string (with eventual specific Pango attributes) before it is entered inside the Text buffer.

The preedit string and attributes are ignored if the Text actor is not editable.

This function should not be used by applications

Parameters:

this

a Text

preedit_str

the pre-edit string, or null to unset it

preedit_attrs

the pre-edit string attributes

cursor_pos

the cursor position for the pre-edit string