![]() |
![]() |
![]() |
IBus Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
IBusBus; IBusBus * ibus_bus_new (void); gboolean ibus_bus_is_connected (IBusBus *bus); const gchar * ibus_bus_hello (IBusBus *bus); guint ibus_bus_request_name (IBusBus *bus, const gchar *name, guint flags); guint ibus_bus_release_name (IBusBus *bus, const gchar *name); gboolean ibus_bus_name_has_owner (IBusBus *bus, const gchar *name); GList * ibus_bus_list_names (IBusBus *bus); void ibus_bus_add_match (IBusBus *bus, const gchar *rule); void ibus_bus_remove_match (IBusBus *bus, const gchar *rule); gchar * ibus_bus_get_name_owner (IBusBus *bus, const gchar *name); gboolean ibus_bus_exit (IBusBus *bus, gboolean restart); gchar * ibus_bus_current_input_context (IBusBus *bus); gboolean ibus_bus_register_component (IBusBus *bus, IBusComponent *component); GList * ibus_bus_list_engines (IBusBus *bus); GList * ibus_bus_list_active_engines (IBusBus *bus); IBusConfig * ibus_bus_get_config (IBusBus *bus);
typedef struct _IBusBus IBusBus;
An opaque data type representing IBus bus (daemon communication) status.
IBusBus * ibus_bus_new (void);
New an IBusBus instance.
Returns : |
A newly allocated IBusBus instance. |
gboolean ibus_bus_is_connected (IBusBus *bus);
Return TRUE if bus
is connected to IBus daemon.
|
An IBusBus. |
Returns : |
TRUE if bus is connected, FALSE otherwise.
|
const gchar * ibus_bus_hello (IBusBus *bus);
This function sends a "HELLO" message to DBus daemon, which replies the unique name of current IBus process.
|
An IBusBus. |
Returns : |
The unique name of IBus process in DBus. |
guint ibus_bus_request_name (IBusBus *bus, const gchar *name, guint flags);
Request a name from IBus daemon.
|
the IBusBus instance to be processed. |
|
Name to be requested. |
|
Flags (FixMe). |
Returns : |
0 if failed; positive number otherwise. |
guint ibus_bus_release_name (IBusBus *bus, const gchar *name);
Release a name to IBus daemon.
|
An IBusBus. |
|
Name to be released. |
Returns : |
0 if failed; positive number otherwise. |
gboolean ibus_bus_name_has_owner (IBusBus *bus, const gchar *name);
Whether the name has owner.
|
An IBusBus. |
|
Name to be released. |
Returns : |
TRUE if the name has owner, FALSE otherwise. |
GList * ibus_bus_list_names (IBusBus *bus);
Return lists that attached to bus
.
[FixMe] Not implemented yet, only return NULL.
|
An IBusBus. |
Returns : |
Lists that attached to bus .
|
void ibus_bus_add_match (IBusBus *bus, const gchar *rule);
Add a match rule to an IBusBus.
|
An IBusBus. |
|
Match rule. |
void ibus_bus_remove_match (IBusBus *bus, const gchar *rule);
Remove a match rule to an IBusBus.
|
An IBusBus. |
|
Match rule. |
gchar * ibus_bus_get_name_owner (IBusBus *bus, const gchar *name);
Return the name owner.
|
An IBusBus. |
|
Name. |
Returns : |
Owner of the name. The returned value must be freed with g_free() .
|
gboolean ibus_bus_exit (IBusBus *bus, gboolean restart);
Exit or restart an IBusBus.
|
An IBusBus. |
|
Whether restarting the ibus. |
Returns : |
TRUE if the "Exit" call is suceeded, FALSE otherwise. |
gchar * ibus_bus_current_input_context (IBusBus *bus);
Get the current focused input context.
|
An IBusBus. |
Returns : |
The named of currently focued IBusInputContext if the
"CurrentInputContext" call suceeded, NULL otherwise. The return
value must be freed with g_free() .
|
gboolean ibus_bus_register_component (IBusBus *bus, IBusComponent *component);
Register a componet to an IBusBus.
|
An IBusBus. |
|
A input engine component. |
Returns : |
TRUE if the "RegisterComponent" call is suceeded, FALSE otherwise. |
GList * ibus_bus_list_engines (IBusBus *bus);
List engines. Note that this function is not yet implemented.
|
An IBusBus. |
Returns : |
A GList of engines. |
GList * ibus_bus_list_active_engines (IBusBus *bus);
List active engines. Note that this function is not yet implemented.
Not yet implemented.
|
An IBusBus. |
Returns : |
A GList of active engines. |
IBusConfig * ibus_bus_get_config (IBusBus *bus);
Get the config instance from IBusBus.
|
An IBusBus. |
Returns : |
An newly allocated IBusConfig which is configurable with bus .
|