| IBus Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
BusComponent; IBusEngineDesc; 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); IBusEngineDesc * ibus_engine_desc_new_from_xml_node (XMLNode *node); void ibus_engine_desc_output (IBusEngineDesc *info,GString *output,gint indent);
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
typedef struct {
gchar *name;
gchar *longname;
gchar *description;
gchar *language;
gchar *license;
gchar *author;
gchar *icon;
gchar *layout;
guint rank;
} IBusEngineDesc;
Input method engine description data.
gchar * |
Name of the engine. |
gchar * |
Long name of the input method engine. |
gchar * |
Input method engine description. |
gchar * |
Language (e.g. zh, jp) supported by this input method engine. |
gchar * |
License of the input method engine. |
gchar * |
Author of the input method engine. |
gchar * |
Icon file of this engine. |
gchar * |
Keyboard layout |
guint |
Preference rank among engines, the highest ranked IME will put in the front. |
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 of the engine. |
|
Long name of the input method engine. |
|
Input method engine description. |
|
Language (e.g. zh, jp) supported by this input method engine. |
|
License of the input method engine. |
|
Author of the input method engine. |
|
Icon file of this engine. |
|
Keyboard layout |
Returns : |
A newly allocated IBusEngineDesc. |
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.
|
An XML node |
Returns : |
A newly allocated IBusEngineDesc that contains description from
node.
|
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.
|
An IBusEngineDesc |
|
XML-formatted Input method engine description. |
|
Number of indent (showed as 4 spaces). |