| 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.Object
Description
IBusObject is the base object for all objects in IBus.
Synopsis
- newtype Object = Object (ManagedPtr Object)
- class (GObject o, IsDescendantOf Object o) => IsObject o
- toObject :: (MonadIO m, IsObject o) => o -> m Object
- objectDestroy :: (HasCallStack, MonadIO m, IsObject a) => a -> m ()
- objectNew :: (HasCallStack, MonadIO m) => m Object
- type C_ObjectDestroyCallback = Ptr () -> Ptr () -> IO ()
- type ObjectDestroyCallback = IO ()
- afterObjectDestroy :: (IsObject a, MonadIO m) => a -> ObjectDestroyCallback -> m SignalHandlerId
- genClosure_ObjectDestroy :: MonadIO m => ObjectDestroyCallback -> m (GClosure C_ObjectDestroyCallback)
- mk_ObjectDestroyCallback :: C_ObjectDestroyCallback -> IO (FunPtr C_ObjectDestroyCallback)
- noObjectDestroyCallback :: Maybe ObjectDestroyCallback
- onObjectDestroy :: (IsObject a, MonadIO m) => a -> ObjectDestroyCallback -> m SignalHandlerId
- wrap_ObjectDestroyCallback :: ObjectDestroyCallback -> C_ObjectDestroyCallback
Exported types
Memory-managed wrapper type.
Constructors
| Object (ManagedPtr Object) |
Instances
| Eq Object Source # | |
| IsGValue Object Source # | Convert |
| GObject Object Source # | |
Defined in GI.IBus.Objects.Object Methods gobjectType :: IO GType # | |
| HasParentTypes Object Source # | |
Defined in GI.IBus.Objects.Object | |
| type ParentTypes Object Source # | |
Defined in GI.IBus.Objects.Object | |
class (GObject o, IsDescendantOf Object o) => IsObject o Source #
Instances
| (GObject o, IsDescendantOf Object o) => IsObject o Source # | |
Defined in GI.IBus.Objects.Object | |
Methods
Overloaded methods
destroy
Arguments
| :: (HasCallStack, MonadIO m, IsObject a) | |
| => a |
|
| -> m () |
Emit the "destroy" signal notifying all reference holders that they should
release the Object.
The memory for the object itself won't be deleted until its reference count actually drops to 0; ibus_object_destroy merely asks reference holders to release their references. It does not free the object.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Object | Returns: A newly allocated |
Creates a new Object.
Signals
destroy
type C_ObjectDestroyCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ObjectDestroyCallback = IO () Source #
Destroy and free an IBusObject
See also: objectDestroy.
<note><para>Argument userData is ignored in this function.</para></note>
afterObjectDestroy :: (IsObject a, MonadIO m) => a -> ObjectDestroyCallback -> m SignalHandlerId Source #
Connect a signal handler for the destroy signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after object #destroy callback
genClosure_ObjectDestroy :: MonadIO m => ObjectDestroyCallback -> m (GClosure C_ObjectDestroyCallback) Source #
Wrap the callback into a GClosure.
mk_ObjectDestroyCallback :: C_ObjectDestroyCallback -> IO (FunPtr C_ObjectDestroyCallback) Source #
Generate a function pointer callable from C code, from a C_ObjectDestroyCallback.
noObjectDestroyCallback :: Maybe ObjectDestroyCallback Source #
A convenience synonym for .Nothing :: Maybe ObjectDestroyCallback
onObjectDestroy :: (IsObject a, MonadIO m) => a -> ObjectDestroyCallback -> m SignalHandlerId Source #
Connect a signal handler for the destroy signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on object #destroy callback