IBus.Component¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The author of component |
||
r/w/co |
The command line of component |
||
r/w/co |
The description of component |
||
r/w/co |
The homepage of component |
||
r/w/co |
The license of component |
||
r/w/co |
The name of component |
||
r/w/co |
The textdomain path of component |
||
r/w/co |
The version of component |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
pdummy |
[ |
r |
Class Details¶
- class IBus.Component(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.Componentis an executable program. It provides services such as user interface, configuration, and input method engine (IME).It is recommended that IME developers provide a component XML file and load the XML file by
IBus.Component.new_from_file().The format of a component XML file is described at
https://github.com/ibus/ibus/wiki/DevXML
- classmethod new(name, description, version, license, author, homepage, command_line, textdomain)¶
- Parameters:
name (
str) – Name of the component.description (
str) – Detailed description of component.version (
str) – Component version.license (
str) – Distribution license of this component.author (
str) – Author(s) of the component.homepage (
str) – Homepage of the component.command_line (
str) – path to component executable.textdomain (
str) – Domain name for dgettext()
- Returns:
A newly allocated
IBus.Component.- Return type:
Creates a new
IBus.Component.
- classmethod new_from_file(filename)¶
- Parameters:
filename (
str) – An XML file that contains component information.- Returns:
A newly allocated
IBus.Component.- Return type:
Creates a new
IBus.Componentfrom an XML file. Note that a component file usually contains engine descriptions, if it does,IBus.EngineDesc.new_from_xml_node() will be called to load the engine descriptions.
- classmethod new_from_xml_node(node)¶
- Parameters:
node (
IBus.XML) – Root node of component XML tree.- Returns:
A newly allocated
IBus.Component.- Return type:
Creates a new
IBus.Componentfrom an XML tree.
- add_engine(engine)¶
- Parameters:
engine (
IBus.EngineDesc) – A description of an engine.
Add an engine to
IBus.Componentaccording to the description in engine.
- add_observed_path(path, access_fs)¶
- Parameters:
Add an observed path to
IBus.Component.
- check_modification()¶
-
Check whether the observed paths of component is modified.
- get_author()¶
- Returns:
author property in
IBus.Component- Return type:
Gets the author property in
IBus.Component. It should not be freed.
- get_description()¶
- Returns:
description property in
IBus.Component- Return type:
Gets the description property in
IBus.Component. It should not be freed.
- get_engines()¶
- Returns:
A newly allocated
GLib.Listthat contains engines.- Return type:
Gets the engines of this component.
- get_exec()¶
- Returns:
exec property in
IBus.Component- Return type:
Gets the exec property in
IBus.Component. It should not be freed.
- get_homepage()¶
- Returns:
homepage property in
IBus.Component- Return type:
Gets the homepage property in
IBus.Component. It should not be freed.
- get_license()¶
- Returns:
license property in
IBus.Component- Return type:
Gets the license property in
IBus.Component. It should not be freed.
- get_name()¶
- Returns:
name property in
IBus.Component- Return type:
Gets the name property in
IBus.Component. It should not be freed.
- get_observed_paths()¶
- Returns:
A newly allocated
GLib.Listthat contains observed paths.- Return type:
Gets the observed paths of this component.
- get_textdomain()¶
- Returns:
textdomain property in
IBus.Component- Return type:
Gets the textdomain property in
IBus.Component. It should not be freed.
- get_version()¶
- Returns:
version property in
IBus.Component- Return type:
Gets the version property in
IBus.Component. It should not be freed.
- output(output, indent)¶
- Parameters:
output (
GLib.String) –GLib.Stringthat holds the result.indent (
int) – level of indent.
Output
IBus.Componentas an XML-formatted string. The output string can be then shown on the screen or written to file.
- output_engines(output, indent)¶
- Parameters:
output (
GLib.String) –GLib.Stringthat holds the result.indent (
int) – level of indent.
Output engine description as an XML-formatted string. The output string can be then shown on the screen or written to file.
Property Details¶
- IBus.Component.props.author¶
- Name:
author- Type:
- Default Value:
- Flags:
The author of component
- IBus.Component.props.command_line¶
- Name:
command-line- Type:
- Default Value:
- Flags:
The exec path of component
- IBus.Component.props.description¶
- Name:
description- Type:
- Default Value:
- Flags:
The description of component
- IBus.Component.props.homepage¶
- Name:
homepage- Type:
- Default Value:
- Flags:
The homepage of component
- IBus.Component.props.license¶
- Name:
license- Type:
- Default Value:
- Flags:
The license of component
- IBus.Component.props.name¶
- Name:
name- Type:
- Default Value:
- Flags:
The name of component
- IBus.Component.props.textdomain¶
- Name:
textdomain- Type:
- Default Value:
- Flags:
The textdomain of component