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()
gulong seqId() @propertyGet `seqId` field. Returns: the next free #GHook id
void seqId(gulong propval) @propertySet `seqId` field. Params: propval = the next free #GHook id
uint hookSize() @propertyGet `hookSize` field. Returns: the size of the #GHookList elements, in bytes
void hookSize(uint propval) @propertySet `hookSize` field. Params: propval = the size of the #GHookList elements, in bytes
uint isSetup() @propertyGet `isSetup` field. Returns: 1 if the #GHookList has been initialized
void isSetup(uint propval) @propertySet `isSetup` field. Params: propval = 1 if the #GHookList has been initialized
glib.hook.Hook hooks() @propertyGet `hooks` field. Returns: the first #GHook element in the list
GHookFinalizeFunc finalizeHook() @propertyGet `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) @propertySet `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()Removes all the #GHook elements from a #GHookList.
void init_(uint hookSize)Initializes a #GHookList. This must be called before the #GHookList is used.
void invoke(bool mayRecurse)Calls all of the #GHook functions in a #GHookList.
void invokeCheck(bool mayRecurse)Calls 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)Calls a function on each valid #GHook.
void marshalCheck(bool mayRecurse, glib.types.HookCheckMarshaller marshaller)Calls a function on each valid #GHook and destroys it if the function returns false.
Constructors
this(void * ptr, Flag!"Take" take)