Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
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 C_FactoryCreateEngineCallback = Ptr () -> CString -> Ptr () -> IO (Ptr Engine)
- type FactoryCreateEngineCallback = Text -> IO (Maybe Engine)
- afterFactoryCreateEngine :: (IsFactory a, MonadIO m) => a -> FactoryCreateEngineCallback -> m SignalHandlerId
- genClosure_FactoryCreateEngine :: MonadIO m => FactoryCreateEngineCallback -> m (GClosure C_FactoryCreateEngineCallback)
- mk_FactoryCreateEngineCallback :: C_FactoryCreateEngineCallback -> IO (FunPtr C_FactoryCreateEngineCallback)
- noFactoryCreateEngineCallback :: Maybe FactoryCreateEngineCallback
- onFactoryCreateEngine :: (IsFactory a, MonadIO m) => a -> FactoryCreateEngineCallback -> m SignalHandlerId
- wrap_FactoryCreateEngineCallback :: FactoryCreateEngineCallback -> C_FactoryCreateEngineCallback
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 C_FactoryCreateEngineCallback = Ptr () -> CString -> Ptr () -> IO (Ptr Engine) Source #
Type for the callback on the (unwrapped) C side.
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 -> 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
genClosure_FactoryCreateEngine :: MonadIO m => FactoryCreateEngineCallback -> m (GClosure C_FactoryCreateEngineCallback) Source #
Wrap the callback into a GClosure
.
mk_FactoryCreateEngineCallback :: C_FactoryCreateEngineCallback -> IO (FunPtr C_FactoryCreateEngineCallback) Source #
Generate a function pointer callable from C code, from a C_FactoryCreateEngineCallback
.
noFactoryCreateEngineCallback :: Maybe FactoryCreateEngineCallback Source #
A convenience synonym for
.Nothing
:: Maybe
FactoryCreateEngineCallback
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