| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.IBus.Objects.Factory
Description
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 Methods toManagedPtr :: Factory -> ManagedPtr Factory | |
| TypedObject Factory Source # | |
Defined in GI.IBus.Objects.Factory Methods glibType :: IO GType | |
| IsGValue Factory Source # | Convert |
Defined in GI.IBus.Objects.Factory | |
| HasParentTypes Factory Source # | |
Defined in GI.IBus.Objects.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
Overloaded methods
addEngine
Arguments
| :: (HasCallStack, MonadIO m, IsFactory a) | |
| => a |
|
| -> Text |
|
| -> GType |
|
| -> m () |
Add an engine to the factory.
createEngine
Arguments
| :: (HasCallStack, MonadIO m, IsFactory a) | |
| => a |
|
| -> Text |
|
| -> m Engine | Returns: |
Creates an Engine with engineName.
new
Arguments
| :: (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 #
Arguments
| = 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