IBus.Factory¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class IBus.Factory(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.Factoryis anIBus.Servicethat 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.see_also:
IBus.Engine- classmethod new(connection)¶
- Parameters:
connection (
Gio.DBusConnection) – AnGio.DBusConnection.- Returns:
A newly allocated
IBus.Factory.- Return type:
Creates a new
IBus.Factory.
- add_engine(engine_name, engine_type)¶
- Parameters:
engine_name (
str) – Name of an engine.engine_type (
GObject.GType) –GObject.GTypeof an engine.
Add an engine to the factory.
- create_engine(engine_name)¶
- Parameters:
engine_name (
str) – Name of an engine.- Returns:
IBus.Enginewith engine_name.- Return type:
Creates an
IBus.Enginewith engine_name.
- do_create_engine(engine_name) virtual¶
- Parameters:
engine_name (
str) – Name of an engine.- Returns:
IBus.Enginewith engine_name.- Return type:
Creates an
IBus.Enginewith engine_name.
Signal Details¶
- IBus.Factory.signals.create_engine(factory, engine_name)¶
- Signal Name:
create-engine- Flags:
- Parameters:
factory (
IBus.Factory) – The object which received the signalengine_name (
str) – the engine_name which received the signal
- Returns:
An
IBus.Engine- Return type:
IBus.EngineorNone
The
::create-enginesignal is a signal to createIBus.Enginewith engine_name, which gets emitted whenIBus.Factoryreceived CreateEngine dbus method. The callback functions will be called until a callback returns a non-null object ofIBus.Engine.