gi-ibus-1.5.3: IBus bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.IBus.Objects.Factory

Description

An IBusFactory is an 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: Engine

Synopsis

Exported types

newtype Factory Source #

Memory-managed wrapper type.

Constructors

Factory (ManagedPtr Factory) 

Instances

Instances details
Eq Factory Source # 
Instance details

Defined in GI.IBus.Objects.Factory

Methods

(==) :: Factory -> Factory -> Bool #

(/=) :: Factory -> Factory -> Bool #

GObject Factory Source # 
Instance details

Defined in GI.IBus.Objects.Factory

ManagedPtrNewtype Factory Source # 
Instance details

Defined in GI.IBus.Objects.Factory

Methods

toManagedPtr :: Factory -> ManagedPtr Factory

TypedObject Factory Source # 
Instance details

Defined in GI.IBus.Objects.Factory

Methods

glibType :: IO GType

HasParentTypes Factory Source # 
Instance details

Defined in GI.IBus.Objects.Factory

IsGValue (Maybe Factory) Source #

Convert Factory to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.IBus.Objects.Factory

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Factory -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Factory)

type ParentTypes Factory Source # 
Instance details

Defined in GI.IBus.Objects.Factory

type ParentTypes Factory = '[Service, Object, Object]

class (GObject o, IsDescendantOf Factory o) => IsFactory o Source #

Type class for types which can be safely cast to Factory, for instance with toFactory.

Instances

Instances details
(GObject o, IsDescendantOf Factory o) => IsFactory o Source # 
Instance details

Defined in GI.IBus.Objects.Factory

toFactory :: (MonadIO m, IsFactory o) => o -> m Factory Source #

Cast to Factory, for types for which this is known to be safe. For general casts, use castTo.

Methods

addEngine

factoryAddEngine Source #

Arguments

:: (HasCallStack, MonadIO m, IsFactory a) 
=> a

factory: An IBusFactory.

-> Text

engineName: Name of an engine.

-> GType

engineType: GType of an engine.

-> m () 

Add an engine to the factory.

createEngine

factoryCreateEngine Source #

Arguments

:: (HasCallStack, MonadIO m, IsFactory a) 
=> a

factory: An Factory.

-> Text

engineName: Name of an engine.

-> m Engine

Returns: Engine with engineName.

Creates an Engine with engineName.

new

factoryNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsDBusConnection a) 
=> a

connection: An GDBusConnection.

-> m Factory

Returns: A newly allocated Factory.

Creates a new Factory.

Signals

createEngine

type C_FactoryCreateEngineCallback = Ptr () -> CString -> Ptr () -> IO (Ptr Engine) Source #

Type for the callback on the (unwrapped) C side.

type FactoryCreateEngineCallback Source #

Arguments

 = Text

engineName: the engine_name which received the signal

-> IO (Maybe Engine)

Returns: An IBusEngine

The createEngine signal is a signal to create IBusEngine with engineName, which gets emitted when IBusFactory received CreateEngine dbus method. The callback functions will be called until a callback returns a non-null object of IBusEngine.

afterFactoryCreateEngine :: (IsFactory a, MonadIO m) => a -> FactoryCreateEngineCallback -> m SignalHandlerId Source #

Connect a signal handler for the createEngine signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after factory #createEngine callback

onFactoryCreateEngine :: (IsFactory a, MonadIO m) => a -> FactoryCreateEngineCallback -> m SignalHandlerId Source #

Connect a signal handler for the createEngine signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on factory #createEngine callback