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 |
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 ObjectDestroyCallback = IO ()
- afterObjectDestroy :: (IsObject a, MonadIO m) => a -> ((?self :: a) => ObjectDestroyCallback) -> m SignalHandlerId
- onObjectDestroy :: (IsObject a, MonadIO m) => a -> ((?self :: a) => ObjectDestroyCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Object Source # | |
GObject Object Source # | |
Defined in GI.IBus.Objects.Object | |
ManagedPtrNewtype Object Source # | |
Defined in GI.IBus.Objects.Object toManagedPtr :: Object -> ManagedPtr Object | |
TypedObject Object Source # | |
Defined in GI.IBus.Objects.Object | |
HasParentTypes Object Source # | |
Defined in GI.IBus.Objects.Object | |
IsGValue (Maybe Object) Source # | Convert |
Defined in GI.IBus.Objects.Object gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Object -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Object) | |
type ParentTypes Object Source # | |
Defined in GI.IBus.Objects.Object type ParentTypes Object = '[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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, destroy, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
destroy
:: (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
:: (HasCallStack, MonadIO m) | |
=> m Object | Returns: A newly allocated |
Creates a new Object
.
Signals
destroy
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 -> ((?self :: 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
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.
onObjectDestroy :: (IsObject a, MonadIO m) => a -> ((?self :: 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