Hook
Allocate a new Hook.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Allocate a new Hook using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
The AutofreeScope to allocate this structure in.
Allocate a new Hook.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Parameters
data which is passed to func when this hook is invoked
pointer to the next hook in the list
pointer to the previous hook in the list
the reference count of this hook
the id of this hook, which is unique within its list
flags which are set for this hook. See #GHookFlagMask for predefined flags
the function to call when this hook is invoked. The possible signatures for this function are #GHookFunc and #GHookCheckFunc
Allocate a new Hook using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
data which is passed to func when this hook is invoked
pointer to the next hook in the list
pointer to the previous hook in the list
the reference count of this hook
the id of this hook, which is unique within its list
flags which are set for this hook. See #GHookFlagMask for predefined flags
the function to call when this hook is invoked. The possible signatures for this function are #GHookFunc and #GHookCheckFunc
The AutofreeScope to allocate this structure in.