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

GI.IBus.Callbacks

Description

 
Synopsis

Signals

FreeFunc

type C_FreeFunc = Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type FreeFunc Source #

Arguments

 = Ptr ()

object: object to be freed.

-> IO () 

Free function prototype.

dynamic_FreeFunc Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_FreeFunc 
-> Ptr ()

object: object to be freed.

-> m () 

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_FreeFunc :: MonadIO m => FreeFunc -> m (GClosure C_FreeFunc) Source #

Wrap the callback into a GClosure.

mk_FreeFunc :: C_FreeFunc -> IO (FunPtr C_FreeFunc) Source #

Generate a function pointer callable from C code, from a C_FreeFunc.

noFreeFunc :: Maybe FreeFunc Source #

A convenience synonym for Nothing :: Maybe FreeFunc.

ObjectDestroyFunc

type C_ObjectDestroyFunc = Ptr Object -> IO () Source #

Type for the callback on the (unwrapped) C side.

type ObjectDestroyFunc = Object -> IO () Source #

No description available in the introspection data.

dynamic_ObjectDestroyFunc :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_ObjectDestroyFunc -> a -> m () Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_ObjectDestroyFunc :: MonadIO m => ObjectDestroyFunc -> m (GClosure C_ObjectDestroyFunc) Source #

Wrap the callback into a GClosure.

mk_ObjectDestroyFunc :: C_ObjectDestroyFunc -> IO (FunPtr C_ObjectDestroyFunc) Source #

Generate a function pointer callable from C code, from a C_ObjectDestroyFunc.

SerializableCopyFunc

type C_SerializableCopyFunc = Ptr Serializable -> Ptr Serializable -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type SerializableCopyFunc Source #

Arguments

 = Serializable

dest: The destination Serializable.

-> Serializable

src: A source Serializable.

-> IO Bool

Returns: True if succeed; False otherwise.

Prototype of copy function. Copy function copy from source Serializable to the destination one. Returns a gboolean value which indicates whether the copying is success.

dynamic_SerializableCopyFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsSerializable a, IsSerializable b) 
=> FunPtr C_SerializableCopyFunc 
-> a

dest: The destination Serializable.

-> b

src: A source Serializable.

-> m Bool

Returns: True if succeed; False otherwise.

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_SerializableCopyFunc :: MonadIO m => SerializableCopyFunc -> m (GClosure C_SerializableCopyFunc) Source #

Wrap the callback into a GClosure.

mk_SerializableCopyFunc :: C_SerializableCopyFunc -> IO (FunPtr C_SerializableCopyFunc) Source #

Generate a function pointer callable from C code, from a C_SerializableCopyFunc.

SerializableDeserializeFunc

type C_SerializableDeserializeFunc = Ptr Serializable -> Ptr GVariant -> IO Int32 Source #

Type for the callback on the (unwrapped) C side.

type SerializableDeserializeFunc Source #

Arguments

 = Serializable

serializable: An Serializable.

-> GVariant

variant: A GVariant contains a tuple.

-> IO Int32

Returns: The number of values in the variant(tuple) are consumed.

Prototype of deserialize function. Deserialize function convert a GVariant to Serializable. Returns an integer value which indicates how many values in the variant(tuple) are consumed.

dynamic_SerializableDeserializeFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsSerializable a) 
=> FunPtr C_SerializableDeserializeFunc 
-> a

serializable: An Serializable.

-> GVariant

variant: A GVariant contains a tuple.

-> m Int32

Returns: The number of values in the variant(tuple) are consumed.

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

SerializableSerializeFunc

type C_SerializableSerializeFunc = Ptr Serializable -> Ptr VariantBuilder -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type SerializableSerializeFunc Source #

Arguments

 = Serializable

serializable: An Serializable.

-> VariantBuilder

builder: A VariantBuilder.

-> IO Bool

Returns: True if succeed; False otherwise.

Prototype of serialize function. Serialize function convert an Serializable to VariantBuilder. Returns a gboolean value which indicates whether the conversion is success. Return True if succeed.

dynamic_SerializableSerializeFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsSerializable a) 
=> FunPtr C_SerializableSerializeFunc 
-> a

serializable: An Serializable.

-> VariantBuilder

builder: A VariantBuilder.

-> m Bool

Returns: True if succeed; False otherwise.

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

UnicodeDataLoadAsyncFinish

type C_UnicodeDataLoadAsyncFinish = Ptr (GSList (Ptr UnicodeData)) -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type UnicodeDataLoadAsyncFinish = [UnicodeData] -> IO () Source #

This callback can receive the list of UnicodeData.

type UnicodeDataLoadAsyncFinish_WithClosures = [UnicodeData] -> Ptr () -> IO () Source #

This callback can receive the list of UnicodeData.

dynamic_UnicodeDataLoadAsyncFinish :: (HasCallStack, MonadIO m, IsUnicodeData a) => FunPtr C_UnicodeDataLoadAsyncFinish -> [a] -> Ptr () -> m () Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.