Component
Object Hierarchy:
Description:
[
CCode ( type_id =
"ibus_component_get_type ()" ) ]
public class Component :
Serializable
An IBusComponent is 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
Component.from_file.
The format of a component XML file is described at
https://github.com/ibus/ibus/wiki/DevXML
Content:
Properties:
- public string author { get; construct; }
The author of component
- public string command_line { owned get; construct; }
The exec path of component
- public string description { get; construct; }
The description of component
- public string homepage { get; construct; }
The homepage of component
- public string license { get; construct; }
The license of component
- public string name { get; construct; }
The name of component
- public string textdomain { get; construct; }
The textdomain of component
- public string version { get; construct; }
The version of component
Creation methods:
Methods:
- public void add_engine (EngineDesc engine)
Add an engine to Component according to the
description in engine
.
- public void add_observed_path (string path, bool access_fs)
Add an observed path to Component.
- public bool check_modification ()
Check whether the observed paths of component is modified.
- public unowned string get_author ()
Gets the author property in Component.
- public unowned string get_description ()
Gets the description property in Component.
- public List<unowned EngineDesc> get_engines ()
Gets the engines of this component.
- public unowned string get_exec ()
Gets the exec property in Component.
- public unowned string get_homepage ()
Gets the homepage property in Component.
- public unowned string get_license ()
Gets the license property in Component.
- public unowned string get_name ()
Gets the name property in Component.
- public List<unowned ObservedPath> get_observed_paths ()
Gets the observed paths of this component.
- public unowned string get_textdomain ()
Gets the textdomain property in Component.
- public unowned string get_version ()
Gets the version property in Component.
- public void output (StringBuilder output, int indent)
Output Component as an XML-formatted
string.
- public void output_engines (StringBuilder output, int indent)
Output engine description as an XML-formatted string.
Fields:
Inherited Members:
All known members inherited from class IBus.Serializable
All known members inherited from class IBus.Object
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref