gi-notify-0.7.25: Libnotify bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Notify.Callbacks

Description

 
Synopsis

Signals

ActionCallback

type ActionCallback Source #

Arguments

 = Notification

notification: a ActionCallback notification

-> Text

action: The activated action name

-> IO () 

An action callback function.

type ActionCallback_WithClosures Source #

Arguments

 = Notification

notification: a ActionCallback notification

-> Text

action: The activated action name

-> Ptr ()

userData: User provided data

-> IO () 

An action callback function.

type C_ActionCallback = Ptr Notification -> CString -> Ptr () -> IO () Source #

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

drop_closures_ActionCallback :: ActionCallback -> ActionCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_ActionCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsNotification a) 
=> FunPtr C_ActionCallback 
-> a

notification: a ActionCallback notification

-> Text

action: The activated action name

-> Ptr ()

userData: User provided data

-> m () 

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

genClosure_ActionCallback :: MonadIO m => ActionCallback -> m (GClosure C_ActionCallback) Source #

Wrap the callback into a GClosure.

mk_ActionCallback :: C_ActionCallback -> IO (FunPtr C_ActionCallback) Source #

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