gi-rsvg-2.0.5: librsvg bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Rsvg.Callbacks

Description

 
Synopsis

Signals

SizeFunc

type C_SizeFunc = Ptr Int32 -> Ptr Int32 -> Ptr () -> IO () Source #

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

type SizeFunc = IO (Int32, Int32) Source #

Deprecated: (Since version 2.14.)Use handleRenderDocument instead, which lets you specifya viewport size in which to render the SVG document.

Function to let a user of the library specify the SVG's dimensions

See the documentation for handleSetSizeCallback for an example, and for the reasons for deprecation.

type SizeFunc_WithClosures Source #

Arguments

 = Ptr ()

userData: user data

-> IO (Int32, Int32) 

Function to let a user of the library specify the SVG's dimensions

See the documentation for handleSetSizeCallback for an example, and for the reasons for deprecation.

drop_closures_SizeFunc :: SizeFunc -> SizeFunc_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_SizeFunc Source #

Arguments

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

userData: user data

-> m (Int32, Int32) 

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

genClosure_SizeFunc :: MonadIO m => SizeFunc -> m (GClosure C_SizeFunc) Source #

Wrap the callback into a GClosure.

mk_SizeFunc :: C_SizeFunc -> IO (FunPtr C_SizeFunc) Source #

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

noSizeFunc :: Maybe SizeFunc Source #

A convenience synonym for Nothing :: Maybe SizeFunc.