IBus.Attribute¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
end_index |
r |
The ending index, exclusive. |
|
parent |
r |
||
start_index |
r |
The starting index, inclusive. |
|
type |
r |
IBusAttributeType |
|
value |
r |
Value for the type. |
Class Details¶
- class IBus.Attribute(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.Attribute
represents an attribute that associate toIBus.Text
. It decorates preedit buffer and auxiliary text with underline, foreground and background colors.- classmethod new(type, value, start_index, end_index)¶
- Parameters:
- Returns:
A newly allocated
IBus.Attribute
.- Return type:
Creates a new
IBus.Attribute
.
- get_attr_type()¶
- Returns:
An enum of
IBus.AttrType
.- Return type:
Gets an enum of
IBus.AttrType
.
- get_value()¶
- Returns:
An unsigned int value relative with
IBus.AttrType
.- Return type:
Gets an unsigned int value relative with
IBus.AttrType
. If the type isIBus.AttrType.UNDERLINE
, the return value isIBus.AttrUnderline
. If the type isIBus.AttrType.FOREGROUND
, the return value is the color RGB.