gi-pangocairo-1.0.20: PangoCairo bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.PangoCairo.Callbacks

Contents

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.

-> Ptr ()

data: user data passed to contextSetShapeRenderer

-> IO () 

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

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.

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

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