glib.hook_list

Module for [HookList] class

class HookList

Types 1

The #GHookList struct represents a list of hook functions.

Fields
GHookList _cInstance
Methods
void * _cPtr() nothrow
gulong seqId() @property nothrowGet `seqId` field. Returns: the next free #GHook id
void seqId(gulong propval) @property nothrowSet `seqId` field. Params: propval = the next free #GHook id
uint hookSize() @property nothrowGet `hookSize` field. Returns: the size of the #GHookList elements, in bytes
void hookSize(uint propval) @property nothrowSet `hookSize` field. Params: propval = the size of the #GHookList elements, in bytes
uint isSetup() @property nothrowGet `isSetup` field. Returns: 1 if the #GHookList has been initialized
void isSetup(uint propval) @property nothrowSet `isSetup` field. Params: propval = 1 if the #GHookList has been initialized
glib.hook.Hook hooks() @property nothrowGet `hooks` field. Returns: the first #GHook element in the list
GHookFinalizeFunc finalizeHook() @property nothrowGet `finalizeHook` field. Returns: the function to call to finalize a #GHook element. The default behaviour is to call the hooks @destroy function
void finalizeHook(GHookFinalizeFunc propval) @property nothrowSet `finalizeHook` field. Params: propval = the function to call to finalize a #GHook element. The default behaviour is to call the hooks @destroy function
void clear() nothrowRemoves all the #GHook elements from a #GHookList.
void init_(uint hookSize) nothrowInitializes a #GHookList. This must be called before the #GHookList is used.
void invoke(bool mayRecurse) nothrowCalls all of the #GHook functions in a #GHookList.
void invokeCheck(bool mayRecurse) nothrowCalls all of the #GHook functions in a #GHookList. Any function which returns false is removed from the #GHookList.
void marshal(bool mayRecurse, glib.types.HookMarshaller marshaller) nothrowCalls a function on each valid #GHook.
void marshalCheck(bool mayRecurse, glib.types.HookCheckMarshaller marshaller) nothrowCalls a function on each valid #GHook and destroys it if the function returns false.
Constructors
this(void * ptr, Flag!"Take" take)