IBus.UnicodeData

g GObject.InitiallyUnowned GObject.InitiallyUnowned IBus.Object IBus.Object GObject.InitiallyUnowned->IBus.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned IBus.Serializable IBus.Serializable IBus.Object->IBus.Serializable IBus.UnicodeData IBus.UnicodeData IBus.Serializable->IBus.UnicodeData

Subclasses:

None

Methods

Inherited:

IBus.Serializable (7), IBus.Object (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

load (path, object)

class

load_async (path, object, cancellable, callback, *user_data)

class

save (path, list)

get_alias ()

get_block_name ()

get_code ()

get_name ()

set_block_name (block_name)

Virtual Methods

Inherited:

IBus.Serializable (3), IBus.Object (1), GObject.Object (7)

Properties

Name

Type

Flags

Short Description

alias

str

r/w/c

The Unicode alias name

block-name

str

r/w/c

The Unicode block name

code

int

r/w/co

The Unicode code point

name

str

r/w/c

The Unicode name

Signals

Inherited:

IBus.Object (1), GObject.Object (1)

Fields

Inherited:

IBus.Object (1), GObject.Object (1)

Name

Type

Access

Description

parent

IBus.Serializable

r

Class Details

class IBus.UnicodeData(**kwargs)
Bases:

IBus.Serializable

Abstract:

No

Structure:

IBus.UnicodeDataClass

Unicode data likes code, name, alias, block-name. You can get extended values with g_object_get_properties.

classmethod load(path, object)
Parameters:
Returns:

An IBus.UnicodeData list loaded from the saved cache file.

Return type:

[IBus.UnicodeData]

classmethod load_async(path, object, cancellable, callback, *user_data)
Parameters:

IBus.UnicodeDataLoadAsyncFinish can receive the list of IBus.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:

str

Gets the alias in IBus.UnicodeData. It should not be freed.

get_block_name()
Returns:

block-name property in IBus.UnicodeData

Return type:

str

Gets the block name in IBus.UnicodeData. It should not be freed.

get_code()
Returns:

code property in IBus.UnicodeData

Return type:

str

Gets the code point in IBus.UnicodeData.

get_name()
Returns:

name property in IBus.UnicodeData

Return type:

str

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
Name:

alias

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, CONSTRUCT

The Uniode alias name

IBus.UnicodeData.props.block_name
Name:

block-name

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, CONSTRUCT

The Uniode block name

IBus.UnicodeData.props.code
Name:

code

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Uniode code point

IBus.UnicodeData.props.name
Name:

name

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, CONSTRUCT

The Uniode name