Top |
GEnum ├── IBusAttrType ╰── IBusAttrUnderline GObject ╰── GInitiallyUnowned ╰── IBusObject ╰── IBusSerializable ╰── IBusAttribute
An IBusAttribute represents an attribute that associate to IBusText. It decorates preedit buffer and auxiliary text with underline, foreground and background colors.
IBusAttribute * ibus_attribute_new (guint type
,guint value
,guint start_index
,guint end_index
);
Creates a new IBusAttribute.
guint
ibus_attribute_get_attr_type (IBusAttribute *attr
);
Gets an enum of IBusAttrType.
guint
ibus_attribute_get_value (IBusAttribute *attr
);
Gets an unsigned int value relative with IBusAttrType.
If the type is IBUS_ATTR_TYPE_UNDERLINE
, the return value is
IBusAttrUnderline. If the type is IBUS_ATTR_TYPE_FOREGROUND
,
the return value is the color RGB.
guint
ibus_attribute_get_start_index (IBusAttribute *attr
);
Gets a start unsigned index
guint
ibus_attribute_get_end_index (IBusAttribute *attr
);
Gets an end unsigned index
IBusAttribute * ibus_attr_underline_new (guint underline_type
,guint start_index
,guint end_index
);
Creates a new underline IBusAttribute.
IBusAttribute * ibus_attr_foreground_new (guint color
,guint start_index
,guint end_index
);
Creates a new foreground IBusAttribute.
IBusAttribute * ibus_attr_background_new (guint color
,guint start_index
,guint end_index
);
Creates a new background IBusAttribute.