gi-cogl-1.0.5: COGL GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Cogl.Callbacks

Description

 
Synopsis

Signals

FuncPtr

type C_FuncPtr = IO () Source #

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

type FuncPtr = IO () Source #

The type used by cogl for function pointers, note that this type is used as a generic catch-all cast for function pointers and the actual arguments and return type may be different.

dynamic_FuncPtr :: (HasCallStack, MonadIO m) => FunPtr C_FuncPtr -> m () Source #

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

genClosure_FuncPtr :: MonadIO m => FuncPtr -> m (GClosure C_FuncPtr) Source #

Wrap the callback into a GClosure.

mk_FuncPtr :: C_FuncPtr -> IO (FunPtr C_FuncPtr) Source #

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

noFuncPtr :: Maybe FuncPtr Source #

A convenience synonym for Nothing :: Maybe FuncPtr.