AttrPreedit
Description:
[ CCode ( cprefix = "IBUS_ATTR_PREEDIT_" , type_id = "ibus_attr_preedit_get_type ()" ) ]
[ Flags ]
[ Version ( since = "1.5.29" ) ]
public enum AttrPreedit
Type of Pre-edit style as the semantic name.
The Wayland specs prefers to express the semantic values rather than RGB values and text-input protocol version 1 defines some values:
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/unstable/text-input/text-input-unstable-v1.xml?ref_type=heads#L251
IBus compiled the values for major input method engines: https://github.com/ibus/ibus/wiki/Wayland-Colors
Content:
Enum values:
- DEFAULT - Default style for composing text
and used in the internal logic only with the Wayland text-input protocol V1.
- ERROR_COMPOSE - A wrong compose key
could be an error color.
- ERROR_SPELLING - An detected typo
could be an error color with a spelling check or the word could not be found in a dictionary.
- NONE - Designed for non-composing text with
the Wayland text-input protocol V1 but this is deprecated.
- PREDICTION - A prediction string can be
appended after the typed string.
- PREFIX - A prefix string can be an
informative color.
- SELECTION - Modifying an active segment
is distinguished against whole the preedit text.
- SUFFIX - A suffix string can be an
informative color.
- WHOLE - Most language engines wish to draw
underline in the typed whole preedit string except for the prediction string.