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 AnimationTargetFunc = Double -> IO ()
- type AnimationTargetFunc_WithClosures = Double -> Ptr () -> IO ()
- type C_AnimationTargetFunc = CDouble -> Ptr () -> IO ()
- drop_closures_AnimationTargetFunc :: AnimationTargetFunc -> AnimationTargetFunc_WithClosures
- dynamic_AnimationTargetFunc :: (HasCallStack, MonadIO m) => FunPtr C_AnimationTargetFunc -> Double -> Ptr () -> m ()
- genClosure_AnimationTargetFunc :: MonadIO m => AnimationTargetFunc -> m (GClosure C_AnimationTargetFunc)
- mk_AnimationTargetFunc :: C_AnimationTargetFunc -> IO (FunPtr C_AnimationTargetFunc)
- noAnimationTargetFunc :: Maybe AnimationTargetFunc
- noAnimationTargetFunc_WithClosures :: Maybe AnimationTargetFunc_WithClosures
- wrap_AnimationTargetFunc :: Maybe (Ptr (FunPtr C_AnimationTargetFunc)) -> AnimationTargetFunc_WithClosures -> C_AnimationTargetFunc
Signals
AnimationTargetFunc
type AnimationTargetFunc Source #
Prototype for animation targets based on user callbacks.
Since: 1.0
type AnimationTargetFunc_WithClosures Source #
= Double |
|
-> Ptr () |
|
-> IO () |
Prototype for animation targets based on user callbacks.
Since: 1.0
type C_AnimationTargetFunc = CDouble -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
drop_closures_AnimationTargetFunc :: AnimationTargetFunc -> AnimationTargetFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_AnimationTargetFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_AnimationTargetFunc | |
-> Double |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_AnimationTargetFunc :: MonadIO m => AnimationTargetFunc -> m (GClosure C_AnimationTargetFunc) Source #
Wrap the callback into a GClosure
.
mk_AnimationTargetFunc :: C_AnimationTargetFunc -> IO (FunPtr C_AnimationTargetFunc) Source #
Generate a function pointer callable from C code, from a C_AnimationTargetFunc
.
noAnimationTargetFunc :: Maybe AnimationTargetFunc Source #
A convenience synonym for
.Nothing
:: Maybe
AnimationTargetFunc
noAnimationTargetFunc_WithClosures :: Maybe AnimationTargetFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
AnimationTargetFunc_WithClosures