gi-adwaita-1.0.3: Adwaita bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Adw.Callbacks

Description

 
Synopsis

Signals

AnimationTargetFunc

type AnimationTargetFunc Source #

Arguments

 = Double

value: The animation value

-> IO () 

Prototype for animation targets based on user callbacks.

Since: 1.0

type AnimationTargetFunc_WithClosures Source #

Arguments

 = Double

value: The animation value

-> Ptr ()

userData: The user data provided when creating the target

-> 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 #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_AnimationTargetFunc 
-> Double

value: The animation value

-> Ptr ()

userData: The user data provided when creating the target

-> 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.