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 |
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.
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 |
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 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