Top | ![]() |
![]() |
![]() |
![]() |
IBusEngineDesc * | ibus_engine_desc_new () |
IBusEngineDesc * | ibus_engine_desc_new_varargs () |
IBusEngineDesc * | ibus_engine_desc_new_from_xml_node () |
const gchar * | ibus_engine_desc_get_name () |
const gchar * | ibus_engine_desc_get_longname () |
const gchar * | ibus_engine_desc_get_description () |
const gchar * | ibus_engine_desc_get_language () |
const gchar * | ibus_engine_desc_get_license () |
const gchar * | ibus_engine_desc_get_author () |
const gchar * | ibus_engine_desc_get_icon () |
const gchar * | ibus_engine_desc_get_layout () |
guint | ibus_engine_desc_get_rank () |
const gchar * | ibus_engine_desc_get_hotkeys () |
const gchar * | ibus_engine_desc_get_symbol () |
const gchar * | ibus_engine_desc_get_setup () |
void | ibus_engine_desc_output () |
gchar * | author | Read / Write / Construct Only |
gchar * | description | Read / Write / Construct Only |
gchar * | hotkeys | Read / Write / Construct Only |
gchar * | icon | Read / Write / Construct Only |
gchar * | language | Read / Write / Construct Only |
gchar * | layout | Read / Write / Construct Only |
gchar * | license | Read / Write / Construct Only |
gchar * | longname | Read / Write / Construct Only |
gchar * | name | Read / Write / Construct Only |
guint | rank | Read / Write / Construct Only |
gchar * | setup | Read / Write / Construct Only |
gchar * | symbol | Read / Write / Construct Only |
GObject ╰── GInitiallyUnowned ╰── IBusObject ╰── IBusSerializable ╰── IBusEngineDesc
An IBusEngineDesc stores description data of IBusEngine.
The description data can either be passed to ibus_engine_desc_new()
,
or loaded from an XML node through ibus_engine_desc_new_from_xml_node()
to construct IBusEngineDesc.
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
: IBusComponent, IBusEngine
IBusEngineDesc * ibus_engine_desc_new (const gchar *name
,const gchar *longname
,const gchar *description
,const gchar *language
,const gchar *license
,const gchar *author
,const gchar *icon
,const gchar *layout
);
New a IBusEngineDesc.
name |
Name of the engine. |
|
longname |
Long name of the input method engine. |
|
description |
Input method engine description. |
|
language |
Language (e.g. zh, jp) supported by this input method engine. |
|
license |
License of the input method engine. |
|
author |
Author of the input method engine. |
|
icon |
Icon file of this engine. |
|
layout |
Keyboard layout |
IBusEngineDesc * ibus_engine_desc_new_varargs (const gchar *first_property_name
,...
);
New a IBusEngineDesc.
ibus_engine_desc_new_varargs()
supports the va_list format.
name property is required. e.g.
ibus_engine_desc_new_varargs("name", "ibus-foo", "language", "us", NULL)
IBusEngineDesc *
ibus_engine_desc_new_from_xml_node (XMLNode *node
);
New a IBusEngineDesc from an XML node.
This function is called by ibus_component_new_from_file()
,
so developers normally do not need to call it directly.
const gchar *
ibus_engine_desc_get_name (IBusEngineDesc *info
);
Return the name property in IBusEngineDesc. It should not be freed.
const gchar *
ibus_engine_desc_get_longname (IBusEngineDesc *info
);
Return the longname property in IBusEngineDesc. It should not be freed.
const gchar *
ibus_engine_desc_get_description (IBusEngineDesc *info
);
Return the description property in IBusEngineDesc. It should not be freed.
const gchar *
ibus_engine_desc_get_language (IBusEngineDesc *info
);
Return the language property in IBusEngineDesc. It should not be freed.
const gchar *
ibus_engine_desc_get_license (IBusEngineDesc *info
);
Return the license property in IBusEngineDesc. It should not be freed.
const gchar *
ibus_engine_desc_get_author (IBusEngineDesc *info
);
Return the author property in IBusEngineDesc. It should not be freed.
const gchar *
ibus_engine_desc_get_icon (IBusEngineDesc *info
);
Return the icon property in IBusEngineDesc. It should not be freed.
const gchar *
ibus_engine_desc_get_layout (IBusEngineDesc *info
);
Return the layout property in IBusEngineDesc. It should not be freed.
guint
ibus_engine_desc_get_rank (IBusEngineDesc *info
);
Return the rank property in IBusEngineDesc.
const gchar *
ibus_engine_desc_get_hotkeys (IBusEngineDesc *info
);
Return the hotkeys property in IBusEngineDesc. It should not be freed.
const gchar *
ibus_engine_desc_get_symbol (IBusEngineDesc *info
);
Return the symbol property in IBusEngineDesc. It should not be freed.
const gchar *
ibus_engine_desc_get_setup (IBusEngineDesc *info
);
Return the setup property in IBusEngineDesc. It should not be freed.
void ibus_engine_desc_output (IBusEngineDesc *info
,GString *output
,gint indent
);
Output XML-formatted input method engine description.
The result will be append to GString specified in output
.
struct IBusEngineDesc;
Input method engine description data. You can get extended values with g_object_get_properties. name: Name of the engine. longname: Long name of the input method engine. description: Input method engine description. language: Language (e.g. zh, jp) supported by this input method engine. license: License of the input method engine. author: Author of the input method engine. icon: Icon file of this engine. layout: Keyboard layout rank: Preference rank among engines, the highest ranked IME will put in the front. hotkeys: One or more hotkeys for switching to this engine, separated by semi-colon.
“author”
property “author” gchar *
The author of engine description
Flags: Read / Write / Construct Only
Default value: ""
“description”
property “description” gchar *
The description of engine description
Flags: Read / Write / Construct Only
Default value: ""
“hotkeys”
property “hotkeys” gchar *
The hotkeys of engine description
Flags: Read / Write / Construct Only
Default value: ""
“icon”
property “icon” gchar *
The icon of engine description
Flags: Read / Write / Construct Only
Default value: "ibus-engine"
“language”
property “language” gchar *
The language of engine description
Flags: Read / Write / Construct Only
Default value: ""
“layout”
property “layout” gchar *
The layout of engine description
Flags: Read / Write / Construct Only
Default value: "us"
“license”
property “license” gchar *
The license of engine description
Flags: Read / Write / Construct Only
Default value: ""
“longname”
property “longname” gchar *
The longname of engine description
Flags: Read / Write / Construct Only
Default value: ""
“name”
property “name” gchar *
The name of engine description
Flags: Read / Write / Construct Only
Default value: NULL
“rank”
property “rank” guint
The rank of engine description
Flags: Read / Write / Construct Only
Default value: 0
“setup”
property “setup” gchar *
The exec lists of the engine setup command
Flags: Read / Write / Construct Only
Default value: ""