gi-pango-1.0.25: Pango bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Pango.Callbacks

Description

 
Synopsis

Signals

AttrClassCopyFieldCallback

type AttrClassCopyFieldCallback = Attribute -> IO Attribute Source #

No description available in the introspection data.

type C_AttrClassCopyFieldCallback = Ptr Attribute -> IO (Ptr Attribute) Source #

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

dynamic_AttrClassCopyFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_AttrClassCopyFieldCallback -> Attribute -> m Attribute Source #

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

AttrClassDestroyFieldCallback

type AttrClassDestroyFieldCallback = Attribute -> IO () Source #

No description available in the introspection data.

type C_AttrClassDestroyFieldCallback = Ptr Attribute -> IO () Source #

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

dynamic_AttrClassDestroyFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_AttrClassDestroyFieldCallback -> Attribute -> m () Source #

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

AttrClassEqualFieldCallback

type AttrClassEqualFieldCallback = Attribute -> Attribute -> IO Bool Source #

No description available in the introspection data.

type C_AttrClassEqualFieldCallback = Ptr Attribute -> Ptr Attribute -> IO CInt Source #

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

dynamic_AttrClassEqualFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_AttrClassEqualFieldCallback -> Attribute -> Attribute -> m Bool Source #

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

AttrDataCopyFunc

type AttrDataCopyFunc Source #

Arguments

 = IO (Ptr ())

Returns: new copy of userData.

Type of a function that can duplicate user data for an attribute.

type AttrDataCopyFunc_WithClosures Source #

Arguments

 = Ptr ()

userData: user data to copy

-> IO (Ptr ())

Returns: new copy of userData.

Type of a function that can duplicate user data for an attribute.

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

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

drop_closures_AttrDataCopyFunc :: AttrDataCopyFunc -> AttrDataCopyFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_AttrDataCopyFunc Source #

Arguments

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

userData: user data to copy

-> m (Ptr ())

Returns: new copy of userData.

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

mk_AttrDataCopyFunc :: C_AttrDataCopyFunc -> IO (FunPtr C_AttrDataCopyFunc) Source #

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

AttrFilterFunc

type AttrFilterFunc Source #

Arguments

 = Attribute

attribute: a Pango attribute

-> IO Bool

Returns: True if the attribute should be selected for filtering, False otherwise.

Type of a function filtering a list of attributes.

type AttrFilterFunc_WithClosures Source #

Arguments

 = Attribute

attribute: a Pango attribute

-> Ptr ()

userData: user data passed to the function

-> IO Bool

Returns: True if the attribute should be selected for filtering, False otherwise.

Type of a function filtering a list of attributes.

type C_AttrFilterFunc = Ptr Attribute -> Ptr () -> IO CInt Source #

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

drop_closures_AttrFilterFunc :: AttrFilterFunc -> AttrFilterFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_AttrFilterFunc Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_AttrFilterFunc 
-> Attribute

attribute: a Pango attribute

-> Ptr ()

userData: user data passed to the function

-> m Bool

Returns: True if the attribute should be selected for filtering, False otherwise.

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

mk_AttrFilterFunc :: C_AttrFilterFunc -> IO (FunPtr C_AttrFilterFunc) Source #

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

FontsetForeachFunc

type C_FontsetForeachFunc = Ptr Fontset -> Ptr Font -> Ptr () -> IO CInt Source #

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

type FontsetForeachFunc Source #

Arguments

 = Fontset

fontset: a PangoFontset

-> Font

font: a font from fontset

-> IO Bool

Returns: if True, stop iteration and return immediately.

Callback used by fontsetForeach when enumerating fonts in a fontset.

Since: 1.4

type FontsetForeachFunc_WithClosures Source #

Arguments

 = Fontset

fontset: a PangoFontset

-> Font

font: a font from fontset

-> Ptr ()

userData: callback data

-> IO Bool

Returns: if True, stop iteration and return immediately.

Callback used by fontsetForeach when enumerating fonts in a fontset.

Since: 1.4

drop_closures_FontsetForeachFunc :: FontsetForeachFunc -> FontsetForeachFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_FontsetForeachFunc Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontset a, IsFont b) 
=> FunPtr C_FontsetForeachFunc 
-> a

fontset: a PangoFontset

-> b

font: a font from fontset

-> Ptr ()

userData: callback data

-> m Bool

Returns: if True, stop iteration and return immediately.

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

mk_FontsetForeachFunc :: C_FontsetForeachFunc -> IO (FunPtr C_FontsetForeachFunc) Source #

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