gi-gdk-4.0.7: Gdk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Callbacks

Description

 
Synopsis

Signals

ContentDeserializeFunc

type C_ContentDeserializeFunc = Ptr ContentDeserializer -> IO () Source #

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

type ContentDeserializeFunc Source #

Arguments

 = ContentDeserializer

deserializer: a GdkContentDeserializer

-> IO () 

The type of a function that can be registered with contentRegisterDeserializer.

When the function gets called to operate on content, it can call functions on the deserializer object to obtain the mime type, input stream, user data, etc. for its operation.

dynamic_ContentDeserializeFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentDeserializer a) 
=> FunPtr C_ContentDeserializeFunc 
-> a

deserializer: a GdkContentDeserializer

-> m () 

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

genClosure_ContentDeserializeFunc :: MonadIO m => ContentDeserializeFunc -> m (GClosure C_ContentDeserializeFunc) Source #

Wrap the callback into a GClosure.

ContentSerializeFunc

type C_ContentSerializeFunc = Ptr ContentSerializer -> IO () Source #

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

type ContentSerializeFunc Source #

Arguments

 = ContentSerializer

serializer: a GdkContentSerializer

-> IO () 

The type of a function that can be registered with contentRegisterSerializer.

When the function gets called to operate on content, it can call functions on the serializer object to obtain the mime type, output stream, user data, etc. for its operation.

dynamic_ContentSerializeFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsContentSerializer a) 
=> FunPtr C_ContentSerializeFunc 
-> a

serializer: a GdkContentSerializer

-> m () 

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

genClosure_ContentSerializeFunc :: MonadIO m => ContentSerializeFunc -> m (GClosure C_ContentSerializeFunc) Source #

Wrap the callback into a GClosure.

mk_ContentSerializeFunc :: C_ContentSerializeFunc -> IO (FunPtr C_ContentSerializeFunc) Source #

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