gi-ibus-1.5.4: IBus bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.IBus.Objects.Object

Description

IBusObject is the base object for all objects in IBus.

Synopsis

Exported types

newtype Object Source #

Memory-managed wrapper type.

Constructors

Object (ManagedPtr Object) 

Instances

Instances details
Eq Object Source # 
Instance details

Defined in GI.IBus.Objects.Object

Methods

(==) :: Object -> Object -> Bool #

(/=) :: Object -> Object -> Bool #

GObject Object Source # 
Instance details

Defined in GI.IBus.Objects.Object

ManagedPtrNewtype Object Source # 
Instance details

Defined in GI.IBus.Objects.Object

TypedObject Object Source # 
Instance details

Defined in GI.IBus.Objects.Object

Methods

glibType :: IO GType #

HasParentTypes Object Source # 
Instance details

Defined in GI.IBus.Objects.Object

IsGValue (Maybe Object) Source #

Convert Object to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.IBus.Objects.Object

type ParentTypes Object Source # 
Instance details

Defined in GI.IBus.Objects.Object

class (GObject o, IsDescendantOf Object o) => IsObject o Source #

Type class for types which can be safely cast to Object, for instance with toObject.

Instances

Instances details
(GObject o, IsDescendantOf Object o) => IsObject o Source # 
Instance details

Defined in GI.IBus.Objects.Object

toObject :: (MonadIO m, IsObject o) => o -> m Object Source #

Cast to Object, for types for which this is known to be safe. For general casts, use castTo.

Methods

destroy

objectDestroy Source #

Arguments

:: (HasCallStack, MonadIO m, IsObject a) 
=> a

object: an Object to destroy.

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

objectNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Object

Returns: A newly allocated Object

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