gi-ibus-1.5.2: IBus bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
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

Methods

toManagedPtr :: Object -> ManagedPtr Object

TypedObject Object Source # 
Instance details

Defined in GI.IBus.Objects.Object

Methods

glibType :: IO GType

IsGValue Object Source #

Convert Object to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.IBus.Objects.Object

Methods

toGValue :: Object -> IO GValue

fromGValue :: GValue -> IO Object

HasParentTypes Object Source # 
Instance details

Defined in GI.IBus.Objects.Object

type ParentTypes Object Source # 
Instance details

Defined in GI.IBus.Objects.Object

type ParentTypes Object = '[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

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