Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- newtype Factory = Factory (ManagedPtr Factory)
- class (GObject o, IsDescendantOf Factory o) => IsFactory o
- toFactory :: (MonadIO m, IsFactory o) => o -> m Factory
- factoryAddEngine :: (HasCallStack, MonadIO m, IsFactory a) => a -> Text -> GType -> m ()
- factoryCreateEngine :: (HasCallStack, MonadIO m, IsFactory a) => a -> Text -> m Engine
- factoryNew :: (HasCallStack, MonadIO m, IsDBusConnection a) => a -> m Factory
- type FactoryCreateEngineCallback = Text -> IO (Maybe Engine)
- afterFactoryCreateEngine :: (IsFactory a, MonadIO m) => a -> ((?self :: a) => FactoryCreateEngineCallback) -> m SignalHandlerId
- onFactoryCreateEngine :: (IsFactory a, MonadIO m) => a -> ((?self :: a) => FactoryCreateEngineCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Factory Source # | |
GObject Factory Source # | |
Defined in GI.IBus.Objects.Factory | |
ManagedPtrNewtype Factory Source # | |
Defined in GI.IBus.Objects.Factory toManagedPtr :: Factory -> ManagedPtr Factory | |
TypedObject Factory Source # | |
Defined in GI.IBus.Objects.Factory | |
HasParentTypes Factory Source # | |
Defined in GI.IBus.Objects.Factory | |
IsGValue (Maybe Factory) Source # | Convert |
Defined in GI.IBus.Objects.Factory gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Factory -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Factory) | |
type ParentTypes Factory Source # | |
Defined in GI.IBus.Objects.Factory |
class (GObject o, IsDescendantOf Factory o) => IsFactory o Source #
Instances
(GObject o, IsDescendantOf Factory o) => IsFactory o Source # | |
Defined in GI.IBus.Objects.Factory |
Methods
Click to display all available methods, including inherited ones
Methods
addEngine, bindProperty, bindPropertyFull, createEngine, destroy, emitSignal, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, register, runDispose, stealData, stealQdata, thawNotify, unref, unregister, watchClosure.
Getters
getConnection, getData, getObjectPath, getProperty, getQdata.
Setters
addEngine
:: (HasCallStack, MonadIO m, IsFactory a) | |
=> a |
|
-> Text |
|
-> GType |
|
-> m () |
Add an engine to the factory.
createEngine
:: (HasCallStack, MonadIO m, IsFactory a) | |
=> a |
|
-> Text |
|
-> m Engine | Returns: |
Creates an Engine
with engineName
.
new
:: (HasCallStack, MonadIO m, IsDBusConnection a) | |
=> a |
|
-> m Factory | Returns: A newly allocated |
Creates a new Factory
.
Signals
createEngine
type FactoryCreateEngineCallback Source #
= Text |
|
-> 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 -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onFactoryCreateEngine :: (IsFactory a, MonadIO m) => a -> ((?self :: 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