gi-pangocairo-1.0.30: PangoCairo bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.PangoCairo.Callbacks

Description

 
Synopsis

Signals

ShapeRendererFunc

type C_ShapeRendererFunc = Ptr Context -> Ptr AttrShape -> CInt -> Ptr () -> IO () Source #

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

type ShapeRendererFunc Source #

Arguments

 = Context

cr: a Cairo context with current point set to where the shape should be rendered

-> AttrShape

attr: the AttrTypeShape to render

-> Bool

doPath: whether only the shape path should be appended to current path of cr and no filling/stroking done. This will be set to True when called from layoutPath and layoutLinePath rendering functions.

-> IO () 

Function type for rendering attributes of type AttrTypeShape with Pango's Cairo renderer.

type ShapeRendererFunc_WithClosures Source #

Arguments

 = Context

cr: a Cairo context with current point set to where the shape should be rendered

-> AttrShape

attr: the AttrTypeShape to render

-> Bool

doPath: whether only the shape path should be appended to current path of cr and no filling/stroking done. This will be set to True when called from layoutPath and layoutLinePath rendering functions.

-> Ptr ()

data: user data passed to contextSetShapeRenderer

-> IO () 

Function type for rendering attributes of type AttrTypeShape with Pango's Cairo renderer.

drop_closures_ShapeRendererFunc :: ShapeRendererFunc -> ShapeRendererFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_ShapeRendererFunc Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_ShapeRendererFunc 
-> Context

cr: a Cairo context with current point set to where the shape should be rendered

-> AttrShape

attr: the AttrTypeShape to render

-> Bool

doPath: whether only the shape path should be appended to current path of cr and no filling/stroking done. This will be set to True when called from layoutPath and layoutLinePath rendering functions.

-> Ptr ()

data: user data passed to contextSetShapeRenderer

-> m () 

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

genClosure_ShapeRendererFunc :: MonadIO m => ShapeRendererFunc -> m (GClosure C_ShapeRendererFunc) Source #

Wrap the callback into a GClosure.

mk_ShapeRendererFunc :: C_ShapeRendererFunc -> IO (FunPtr C_ShapeRendererFunc) Source #

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