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.Factory
is anIBus.Service
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.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.GType
of an engine.
Add an engine to the factory.
- create_engine(engine_name)¶
- Parameters:
engine_name (
str
) – Name of an engine.- Returns:
IBus.Engine
with engine_name.- Return type:
Creates an
IBus.Engine
with engine_name.
- do_create_engine(engine_name) virtual¶
- Parameters:
engine_name (
str
) – Name of an engine.- Returns:
IBus.Engine
with engine_name.- Return type:
Creates an
IBus.Engine
with 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.Engine
orNone
The
::create-engine
signal is a signal to createIBus.Engine
with engine_name, which gets emitted whenIBus.Factory
received CreateEngine dbus method. The callback functions will be called until a callback returns a non-null object ofIBus.Engine
.