glib.hook

Module for [Hook] class

class Hook

Types 1

classHook

The #GHook struct represents a single hook function in a #GHookList.

Fields
GHook _cInstance
Methods
void * _cPtr() nothrow
glib.hook.Hook next() @property nothrowGet `next` field. Returns: pointer to the next hook in the list
glib.hook.Hook prev() @property nothrowGet `prev` field. Returns: pointer to the previous hook in the list
uint refCount() @property nothrowGet `refCount` field. Returns: the reference count of this hook
void refCount(uint propval) @property nothrowSet `refCount` field. Params: propval = the reference count of this hook
gulong hookId() @property nothrowGet `hookId` field. Returns: the id of this hook, which is unique within its list
void hookId(gulong propval) @property nothrowSet `hookId` field. Params: propval = the id of this hook, which is unique within its list
uint flags() @property nothrowGet `flags` field. Returns: flags which are set for this hook. See #GHookFlagMask for predefined flags
void flags(uint propval) @property nothrowSet `flags` field. Params: propval = flags which are set for this hook. See #GHookFlagMask for predefined flags
GDestroyNotify destroy() @property nothrowGet `destroy` field. Returns: the default @finalize_hook function of a #GHookList calls this member of the hook that is being finalized
void destroy(GDestroyNotify propval) @property nothrowSet `destroy` field. Params: propval = the default @finalize_hook function of a #GHookList calls this member of the hook that is being finalized
int compareIds(glib.hook.Hook sibling) nothrowCompares the ids of two #GHook elements, returning a negative value if the second id is greater than the first.
bool destroy(glib.hook_list.HookList hookList, gulong hookId) static nothrowDestroys a #GHook, given its ID.
void destroyLink(glib.hook_list.HookList hookList, glib.hook.Hook hook) static nothrowRemoves one #GHook from a #GHookList, marking it inactive and calling [glib.hook.Hook.unref] on it.
void free(glib.hook_list.HookList hookList, glib.hook.Hook hook) static nothrowCalls the #GHookList finalize_hook function if it exists, and frees the memory allocated for the #GHook.
void insertBefore(glib.hook_list.HookList hookList, glib.hook.Hook sibling, glib.hook.Hook hook) static nothrowInserts a #GHook into a #GHookList, before a given #GHook.
void insertSorted(glib.hook_list.HookList hookList, glib.hook.Hook hook, glib.types.HookCompareFunc func) static nothrowInserts a #GHook into a #GHookList, sorted by the given function.
void prepend(glib.hook_list.HookList hookList, glib.hook.Hook hook) static nothrowPrepends a #GHook on the start of a #GHookList.
void unref(glib.hook_list.HookList hookList, glib.hook.Hook hook) static nothrowDecrements the reference count of a #GHook. If the reference count falls to 0, the #GHook is removed from the #GHookList and [glib.hook.Hook.free] is called to free it.
Constructors
this(void * ptr, Flag!"Take" take)