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

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

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

ContentSerializeFunc

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

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

type ContentSerializeFunc Source #

Arguments

 = ContentSerializer

serializer: a ContentSerializer

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

-> m () 

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

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

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

SeatGrabPrepareFunc

type C_SeatGrabPrepareFunc = Ptr Seat -> Ptr Surface -> Ptr () -> IO () Source #

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

type SeatGrabPrepareFunc Source #

Arguments

 = Seat

seat: the Seat being grabbed

-> Surface

surface: the Surface being grabbed

-> IO () 

Type of the callback used to set up surface so it can be grabbed. A typical action would be ensuring the surface is visible, although there's room for other initialization actions.

type SeatGrabPrepareFunc_WithClosures Source #

Arguments

 = Seat

seat: the Seat being grabbed

-> Surface

surface: the Surface being grabbed

-> Ptr ()

userData: user data passed in seatGrab

-> IO () 

Type of the callback used to set up surface so it can be grabbed. A typical action would be ensuring the surface is visible, although there's room for other initialization actions.

drop_closures_SeatGrabPrepareFunc :: SeatGrabPrepareFunc -> SeatGrabPrepareFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_SeatGrabPrepareFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsSeat a, IsSurface b) 
=> FunPtr C_SeatGrabPrepareFunc 
-> a

seat: the Seat being grabbed

-> b

surface: the Surface being grabbed

-> Ptr ()

userData: user data passed in seatGrab

-> m () 

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

mk_SeatGrabPrepareFunc :: C_SeatGrabPrepareFunc -> IO (FunPtr C_SeatGrabPrepareFunc) Source #

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