gi-glib-2.0.13: GLib bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Structs.HookList

Contents

Description

The HookList struct represents a list of hook functions.

Synopsis

Exported types

newZeroHookList :: MonadIO m => m HookList Source #

Construct a HookList struct initialized to zero.

Methods

clear

hookListClear Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> m () 

Removes all the Hook elements from a HookList.

init

hookListInit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> Word32

hookSize: the size of each element in the HookList, typically sizeof (GHook).

-> m () 

Initializes a HookList. This must be called before the HookList is used.

invoke

hookListInvoke Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> Bool

mayRecurse: True if functions which are already running (e.g. in another thread) can be called. If set to False, these are skipped

-> m () 

Calls all of the Hook functions in a HookList.

invokeCheck

hookListInvokeCheck Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> HookList

hookList: a HookList

-> Bool

mayRecurse: True if functions which are already running (e.g. in another thread) can be called. If set to False, these are skipped

-> m () 

Calls all of the Hook functions in a HookList. Any function which returns False is removed from the HookList.

Properties

dummy3

finalizeHook

hookSize

hooks

isSetup

seqId