Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- type C_ShapeRendererFunc = Ptr Context -> Ptr AttrShape -> CInt -> Ptr () -> IO ()
- type ShapeRendererFunc = Context -> AttrShape -> Bool -> IO ()
- type ShapeRendererFunc_WithClosures = Context -> AttrShape -> Bool -> Ptr () -> IO ()
- drop_closures_ShapeRendererFunc :: ShapeRendererFunc -> ShapeRendererFunc_WithClosures
- dynamic_ShapeRendererFunc :: (HasCallStack, MonadIO m) => FunPtr C_ShapeRendererFunc -> Context -> AttrShape -> Bool -> Ptr () -> m ()
- genClosure_ShapeRendererFunc :: MonadIO m => ShapeRendererFunc -> m (GClosure C_ShapeRendererFunc)
- mk_ShapeRendererFunc :: C_ShapeRendererFunc -> IO (FunPtr C_ShapeRendererFunc)
- noShapeRendererFunc :: Maybe ShapeRendererFunc
- noShapeRendererFunc_WithClosures :: Maybe ShapeRendererFunc_WithClosures
- wrap_ShapeRendererFunc :: Maybe (Ptr (FunPtr C_ShapeRendererFunc)) -> ShapeRendererFunc_WithClosures -> C_ShapeRendererFunc
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 #
= Context |
|
-> AttrShape |
|
-> Bool |
|
-> IO () |
Function type for rendering attributes of type AttrTypeShape
with Pango's Cairo renderer.
type ShapeRendererFunc_WithClosures Source #
= Context |
|
-> AttrShape |
|
-> Bool |
|
-> Ptr () |
|
-> 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 #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_ShapeRendererFunc | |
-> Context |
|
-> AttrShape |
|
-> Bool |
|
-> Ptr () |
|
-> 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
.
noShapeRendererFunc :: Maybe ShapeRendererFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ShapeRendererFunc
noShapeRendererFunc_WithClosures :: Maybe ShapeRendererFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
ShapeRendererFunc_WithClosures
wrap_ShapeRendererFunc :: Maybe (Ptr (FunPtr C_ShapeRendererFunc)) -> ShapeRendererFunc_WithClosures -> C_ShapeRendererFunc Source #
Wrap a ShapeRendererFunc
into a C_ShapeRendererFunc
.