IBus.Factory

g GObject.InitiallyUnowned GObject.InitiallyUnowned IBus.Object IBus.Object GObject.InitiallyUnowned->IBus.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned IBus.Factory IBus.Factory IBus.Service IBus.Service IBus.Object->IBus.Service IBus.Service->IBus.Factory

Subclasses:

None

Methods

Inherited:

IBus.Service (8), IBus.Object (2), GObject.Object (37)

Structs:

IBus.ServiceClass (2), GObject.ObjectClass (5)

class

new (connection)

add_engine (engine_name, engine_type)

create_engine (engine_name)

Virtual Methods

Inherited:

IBus.Service (3), IBus.Object (1), GObject.Object (7)

do_create_engine (engine_name)

Properties

Inherited:

IBus.Service (2)

Signals

Inherited:

IBus.Object (1), GObject.Object (1)

Name

Short Description

create-engine

The ::create-engine signal is a signal to create IBus.Engine with engine_name, which gets emitted when IBus.Factory received CreateEngine dbus method.

Fields

Inherited:

IBus.Object (1), GObject.Object (1)

Name

Type

Access

Description

parent

IBus.Service

r

Class Details

class IBus.Factory(**kwargs)
Bases:

IBus.Service

Abstract:

No

Structure:

IBus.FactoryClass

An IBus.Factory is an IBus.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) – An Gio.DBusConnection.

Returns:

A newly allocated IBus.Factory.

Return type:

IBus.Factory

Creates a new IBus.Factory.

add_engine(engine_name, engine_type)
Parameters:

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:

IBus.Engine

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:

IBus.Engine

Creates an IBus.Engine with engine_name.

Signal Details

IBus.Factory.signals.create_engine(factory, engine_name)
Signal Name:

create-engine

Flags:

RUN_LAST

Parameters:
  • factory (IBus.Factory) – The object which received the signal

  • engine_name (str) – the engine_name which received the signal

Returns:

An IBus.Engine

Return type:

IBus.Engine or None

The ::create-engine signal is a signal to create IBus.Engine with engine_name, which gets emitted when IBus.Factory received CreateEngine dbus method. The callback functions will be called until a callback returns a non-null object of IBus.Engine.