![]() |
![]() |
![]() |
iBus Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define IBUS_TYPE_FACTORY_INFO #define IBUS_FACTORY_INFO (obj) #define IBUS_FACTORY_INFO_CLASS (klass) #define IBUS_IS_FACTORY_INFO (obj) #define IBUS_IS_FACTORY_INFO_CLASS (klass) #define IBUS_FACTORY_INFO_GET_CLASS (obj) IBusFactory; IBusFactoryInfo; IBusFactory * ibus_factory_new (IBusConnection *connection); void ibus_factory_add_engine (IBusFactory *factory, const gchar *engine_name, GType engine_type); IBusFactoryInfo * ibus_factory_get_info (IBusFactory *factory); GType ibus_factory_info_get_type (void); IBusFactoryInfo * ibus_factory_info_new (const gchar *path, const gchar *name, const gchar *lang, const gchar *icon, const gchar *authors, const gchar *credits);
GObject +----IBusObject +----IBusService +----IBusFactory
GObject +----IBusObject +----IBusSerializable +----IBusFactoryInfo
An IBusFactory is an IBusService that creates input method engine (IME) instance. It provides CreateEngine remote method, which creates an IME instance by name, and returns the D-Bus object path to IBus daemon.
typedef struct _IBusFactory IBusFactory;
An opaque data type representing an IBusFactory.
typedef struct { gchar *path; gchar *name; gchar *lang; gchar *icon; gchar *authors; gchar *credits; } IBusFactoryInfo;
An IBusFactoryInfo stores information about an IME. So CreateEngine method can create instances of that IME.
IBusFactory * ibus_factory_new (IBusConnection *connection);
New an IBusFactory.
|
An IBusConnection. |
Returns : |
A newly allocated IBusFactory. |
void ibus_factory_add_engine (IBusFactory *factory, const gchar *engine_name, GType engine_type);
Add an engine to the factory.
|
|
|
Name of an engine. |
|
GType of an engine. |
IBusFactoryInfo * ibus_factory_get_info (IBusFactory *factory);
Get IBusFactoryInfo out of IBusFactory.
This function is currently commented out
|
An IBusFactory |
Returns : |
A corresponding IbusFactoryInfo. |
IBusFactoryInfo * ibus_factory_info_new (const gchar *path, const gchar *name, const gchar *lang, const gchar *icon, const gchar *authors, const gchar *credits);
New an IBusFactoryInfo.
|
D-Bus path for the IME. |
|
IME name. |
|
Supporting language of the IME. |
|
Icon file of the IME. |
|
Authors of the IME. |
|
Credits of the IME. |
Returns : |
A newly allocated IBusFactoryInfo. |