Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- type C_ShapeRendererFunc = Ptr Context -> Ptr AttrShape -> CInt -> Ptr () -> IO ()
- type ShapeRendererFunc = Context -> AttrShape -> Bool -> Ptr () -> IO ()
- 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
- wrap_ShapeRendererFunc :: Maybe (Ptr (FunPtr C_ShapeRendererFunc)) -> ShapeRendererFunc -> 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 |
|
-> Ptr () |
|
-> IO () |
Function type for rendering attributes of type AttrTypeShape
with Pango's Cairo renderer.
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
wrap_ShapeRendererFunc :: Maybe (Ptr (FunPtr C_ShapeRendererFunc)) -> ShapeRendererFunc -> C_ShapeRendererFunc Source #
Wrap a ShapeRendererFunc
into a C_ShapeRendererFunc
.