IBus.UnicodeData¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
The Unicode alias name |
||
r/w/c |
The Unicode block name |
||
r/w/co |
The Unicode code point |
||
r/w/c |
The Unicode name |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class IBus.UnicodeData(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Unicode data likes code, name, alias, block-name. You can get extended values with g_object_get_properties.
- classmethod load(path, object)¶
- Parameters:
path (
str
) – A path of the saved dictionary file.object (
GObject.Object
orNone
) – If theGObject.Object
has “unicode-deserialize-progress” signal, this function will emit (the number of desrializedIBus.UnicodeData
, * the total number ofIBus.UnicodeData
) of uint values with that signal by 100 times. OtherwiseNone
.
- Returns:
An
IBus.UnicodeData
list loaded from the saved cache file.- Return type:
- classmethod load_async(path, object, cancellable, callback, *user_data)¶
- Parameters:
path (
str
) – A path of the saved dictionary file.object (
GObject.Object
orNone
) – If theGObject.Object
has “unicode-deserialize-progress” signal, this function will emit (the number of desrializedIBus.UnicodeData
, * the total number ofIBus.UnicodeData
) of uint values with that signal by 100 times. OtherwiseNone
.cancellable (
Gio.Cancellable
orNone
) – cancellable.callback (
IBus.UnicodeDataLoadAsyncFinish
) –IBus.UnicodeDataLoadAsyncFinish
.
IBus.UnicodeDataLoadAsyncFinish
can receive the list ofIBus.UnicodeData
.
- classmethod save(path, list)¶
- Parameters:
path (
str
) – A path of the saved Unicode data.list ([
IBus.UnicodeData
]) – A list of unicode data.
Save the list of
IBus.UnicodeData
to the cache file.
- get_alias()¶
- Returns:
alias property in
IBus.UnicodeData
- Return type:
Gets the alias in
IBus.UnicodeData
. It should not be freed.
- get_block_name()¶
- Returns:
block-name property in
IBus.UnicodeData
- Return type:
Gets the block name in
IBus.UnicodeData
. It should not be freed.
- get_code()¶
- Returns:
code property in
IBus.UnicodeData
- Return type:
Gets the code point in
IBus.UnicodeData
.
- get_name()¶
- Returns:
name property in
IBus.UnicodeData
- Return type:
Gets the name in
IBus.UnicodeData
. It should not be freed.
- set_block_name(block_name)¶
- Parameters:
block_name (
str
) – A block name
Sets the block name in
IBus.UnicodeData
.
Property Details¶
- IBus.UnicodeData.props.alias¶
-
The Uniode alias name
- IBus.UnicodeData.props.block_name¶
-
The Uniode block name
- IBus.UnicodeData.props.code¶
- Name:
code
- Type:
- Default Value:
0
- Flags:
The Uniode code point