IBusFactoryInfo

IBusFactoryInfo — Factory for creating engine instances.

Stability Level

Stable, unless otherwise indicated

Synopsis

#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);

Object Hierarchy

  GObject
   +----IBusObject
         +----IBusService
               +----IBusFactory
  GObject
   +----IBusObject
         +----IBusSerializable
               +----IBusFactoryInfo

Description

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.

Details

IBUS_TYPE_FACTORY_INFO

#define             IBUS_TYPE_FACTORY_INFO


IBUS_FACTORY_INFO()

#define             IBUS_FACTORY_INFO(obj)

obj :


IBUS_FACTORY_INFO_CLASS()

#define             IBUS_FACTORY_INFO_CLASS(klass)

klass :


IBUS_IS_FACTORY_INFO()

#define             IBUS_IS_FACTORY_INFO(obj)

obj :


IBUS_IS_FACTORY_INFO_CLASS()

#define             IBUS_IS_FACTORY_INFO_CLASS(klass)

klass :


IBUS_FACTORY_INFO_GET_CLASS()

#define             IBUS_FACTORY_INFO_GET_CLASS(obj)

obj :


IBusFactory

typedef struct _IBusFactory IBusFactory;

An opaque data type representing an IBusFactory.


IBusFactoryInfo

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.

gchar *path;

D-Bus path for the IME.

gchar *name;

D-Bus name for the IME.

gchar *lang;

Supporting language of the IME.

gchar *icon;

Icon file of the IME.

gchar *authors;

Authors of the IME.

gchar *credits;

Credits of the IME.

ibus_factory_new ()

IBusFactory *       ibus_factory_new                    (IBusConnection *connection);

New an IBusFactory.

connection :

An IBusConnection.

Returns :

A newly allocated IBusFactory.

ibus_factory_add_engine ()

void                ibus_factory_add_engine             (IBusFactory *factory,
                                                         const gchar *engine_name,
                                                         GType engine_type);

Add an engine to the factory.

factory :

engine_name :

Name of an engine.

engine_type :

GType of an engine.

ibus_factory_get_info ()

IBusFactoryInfo *   ibus_factory_get_info               (IBusFactory *factory);

Get IBusFactoryInfo out of IBusFactory.

Note

This function is currently commented out

factory :

An IBusFactory

Returns :

A corresponding IbusFactoryInfo.

ibus_factory_info_get_type ()

GType               ibus_factory_info_get_type          (void);

Returns :


ibus_factory_info_new ()

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.

path :

D-Bus path for the IME.

name :

IME name.

lang :

Supporting language of the IME.

icon :

Icon file of the IME.

authors :

Authors of the IME.

credits :

Credits of the IME.

Returns :

A newly allocated IBusFactoryInfo.

See Also

#IBusEngine