IBus.EngineDesc¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The author of engine description |
||
r/w/co |
The description of engine description |
||
r/w/co |
The hotkeys of engine description |
||
r/w/co |
The icon of engine description |
||
r/w/co |
The key of |
||
r/w/co |
The language of engine description |
||
r/w/co |
The layout of engine description |
||
r/w/co |
The keyboard option of engine description |
||
r/w/co |
The keyboard variant of engine description |
||
r/w/co |
The license of engine description |
||
r/w/co |
The longname of engine description |
||
r/w/co |
The name of engine description |
||
r/w/co |
The rank of engine description |
||
r/w/co |
The exec lists of the engine setup command |
||
r/w/co |
The icon symbol chars of engine description |
||
r/w/co |
The textdomain of engine description |
||
r/w/co |
The version number of engine description |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class IBus.EngineDesc(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.EngineDesc
stores description data ofIBus.Engine
. The description data can either be passed toIBus.EngineDesc.new
(), or loaded from an XML node throughIBus.EngineDesc.new_from_xml_node
() to constructIBus.EngineDesc
.However, the recommended way to load engine description data is using
IBus.Component.new_from_file
() to load a component file, which also includes engine description data.see_also:
IBus.Component
,IBus.Engine
- classmethod new(name, longname, description, language, license, author, icon, layout)¶
- Parameters:
name (
str
) – Name of the engine.longname (
str
) – Long name of the input method engine.description (
str
) – Input method engine description.language (
str
) – Language (e.g. zh, jp) supported by this input method engine.license (
str
) – License of the input method engine.author (
str
) – Author of the input method engine.icon (
str
) – Icon file of this engine.layout (
str
) – Keyboard layout
- Returns:
A newly allocated
IBus.EngineDesc
.- Return type:
Creates a new
IBus.EngineDesc
. If layout is “default”, the engine inherits the current layout and does not change the layout. The layouts “default” and “” are same. E.g. If you switch JP XKB engine and an input method engine (IME), the IME inherits the JP layout.
- classmethod new_from_xml_node(node)¶
- Parameters:
node (
IBus.XML
) – An XML node- Returns:
A newly allocated
IBus.EngineDesc
that contains description from node.- Return type:
Creates a new
IBus.EngineDesc
from an XML node.This function is called by
IBus.Component.new_from_file
(), so developers normally do not need to call it directly.
- get_author()¶
- Returns:
author property in
IBus.EngineDesc
- Return type:
Gets the author property in
IBus.EngineDesc
. It should not be freed.
- get_description()¶
- Returns:
description property in
IBus.EngineDesc
- Return type:
Gets the description property in
IBus.EngineDesc
. It should not be freed.
- get_hotkeys()¶
- Returns:
hotkeys property in
IBus.EngineDesc
- Return type:
Gets the hotkeys property in
IBus.EngineDesc
. It should not be freed.
- get_icon()¶
- Returns:
icon property in
IBus.EngineDesc
- Return type:
Gets the icon property in
IBus.EngineDesc
. It should not be freed.
- get_icon_prop_key()¶
- Returns:
IBus.Property.key for dynamic panel icon in
IBus.EngineDesc
- Return type:
Gets the key of
IBus.Property
to load the panel icon dynamically inIBus.EngineDesc
. It should not be freed.
- get_language()¶
- Returns:
language property in
IBus.EngineDesc
- Return type:
Gets the language property in
IBus.EngineDesc
. It should not be freed.
- get_layout()¶
- Returns:
layout property in
IBus.EngineDesc
- Return type:
Gets the layout property in
IBus.EngineDesc
. It should not be freed.
- get_layout_option()¶
- Returns:
keyboard option property in
IBus.EngineDesc
- Return type:
Gets the keyboard option property in
IBus.EngineDesc
. It should not be freed.
- get_layout_variant()¶
- Returns:
keyboard variant property in
IBus.EngineDesc
- Return type:
Gets the keyboard variant property in
IBus.EngineDesc
. It should not be freed.
- get_license()¶
- Returns:
license property in
IBus.EngineDesc
- Return type:
Gets the license property in
IBus.EngineDesc
. It should not be freed.
- get_longname()¶
- Returns:
longname property in
IBus.EngineDesc
- Return type:
Gets the longname property in
IBus.EngineDesc
. It should not be freed.
- get_name()¶
- Returns:
name property in
IBus.EngineDesc
- Return type:
Gets the name property in
IBus.EngineDesc
. It should not be freed.
- get_rank()¶
- Returns:
rank property in
IBus.EngineDesc
- Return type:
Gets the rank property in
IBus.EngineDesc
.
- get_setup()¶
- Returns:
setup property in
IBus.EngineDesc
- Return type:
Gets the setup property in
IBus.EngineDesc
. It should not be freed.
- get_symbol()¶
- Returns:
symbol property in
IBus.EngineDesc
- Return type:
Gets the symbol property in
IBus.EngineDesc
. It should not be freed.
- get_textdomain()¶
- Returns:
textdomain in
IBus.EngineDesc
- Return type:
Gets the textdomain property in
IBus.EngineDesc
. It should not be freed.
- get_version()¶
- Returns:
version in
IBus.EngineDesc
- Return type:
Gets the version property in
IBus.EngineDesc
. It should not be freed.
- output(output, indent)¶
- Parameters:
output (
GLib.String
) – XML-formatted Input method engine description.indent (
int
) – Number of indent (showed as 4 spaces).
Output XML-formatted input method engine description. The result will be append to
GLib.String
specified in output.
Property Details¶
- IBus.EngineDesc.props.author¶
- Name:
author
- Type:
- Default Value:
''
- Flags:
The author of engine description
- IBus.EngineDesc.props.description¶
- Name:
description
- Type:
- Default Value:
''
- Flags:
The description of engine description
- IBus.EngineDesc.props.hotkeys¶
- Name:
hotkeys
- Type:
- Default Value:
''
- Flags:
The hotkeys of engine description
- IBus.EngineDesc.props.icon¶
- Name:
icon
- Type:
- Default Value:
'ibus-engine'
- Flags:
The icon of engine description
- IBus.EngineDesc.props.icon_prop_key¶
- Name:
icon-prop-key
- Type:
- Default Value:
''
- Flags:
The key of
IBus.Property
to change panel icon dynamically.
- IBus.EngineDesc.props.language¶
- Name:
language
- Type:
- Default Value:
''
- Flags:
The language of engine description
- IBus.EngineDesc.props.layout¶
- Name:
layout
- Type:
- Default Value:
'us'
- Flags:
The layout of engine description
- IBus.EngineDesc.props.layout_option¶
- Name:
layout-option
- Type:
- Default Value:
''
- Flags:
The keyboard option of engine description
- IBus.EngineDesc.props.layout_variant¶
- Name:
layout-variant
- Type:
- Default Value:
''
- Flags:
The keyboard variant of engine description
- IBus.EngineDesc.props.license¶
- Name:
license
- Type:
- Default Value:
''
- Flags:
The license of engine description
- IBus.EngineDesc.props.longname¶
- Name:
longname
- Type:
- Default Value:
''
- Flags:
The longname of engine description
- IBus.EngineDesc.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
The name of engine description
- IBus.EngineDesc.props.rank¶
- Name:
rank
- Type:
- Default Value:
0
- Flags:
The rank of engine description
- IBus.EngineDesc.props.setup¶
- Name:
setup
- Type:
- Default Value:
''
- Flags:
The exec lists of the engine setup command
- IBus.EngineDesc.props.symbol¶
- Name:
symbol
- Type:
- Default Value:
''
- Flags:
The symbol chars of engine description instead of icon image
- IBus.EngineDesc.props.textdomain¶
- Name:
textdomain
- Type:
- Default Value:
''
- Flags:
The textdomain of engine description
- IBus.EngineDesc.props.version¶
- Name:
version
- Type:
- Default Value:
''
- Flags:
The version number of engine description