![]() |
![]() |
![]() |
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 +----GInitiallyUnowned +----IBusObject +----IBusService +----IBusFactory
GObject +----GInitiallyUnowned +----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.
#define IBUS_FACTORY_INFO(obj)
Casts an IBUS_FACTORY_INFO or derived pointer into a (IBusFactoryInfo*) pointer. Depending on the current debugging level, this function may invoke certain runtime checks to identify invalid casts.
|
An object which is subject to casting. |
#define IBUS_FACTORY_INFO_CLASS(klass)
Casts a derived IBusFactoryInfoClass structure into a IBusFactoryInfoClass structure.
|
A class to be casted. |
#define IBUS_IS_FACTORY_INFO(obj)
Checks whether a valid GTypeInstance pointer is of type IBUS_FACTORY_INFO.
|
Instance to check for being a IBUS_FACTORY_INFO. |
#define IBUS_IS_FACTORY_INFO_CLASS(klass)
Checks whether class "is a" valid IBusFactoryInfoClass structure of type IBUS_FACTORY_INFO or derived.
|
A class to be checked. |
#define IBUS_FACTORY_INFO_GET_CLASS(obj)
Get the class of a given object and cast the class to IBusFactoryInfoClass.
|
An object. |
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.
|
An IBusFactory. |
|
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. |