Class Hook
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Hook
- Inheritance
-
Hook
- Inherited Members
Constructors
Hook()
public Hook()
Hook(HookOwnedHandle)
public Hook(HookOwnedHandle handle)
Parameters
handle
HookOwnedHandle
Properties
Flags
public uint Flags { get; set; }
Property Value
Handle
public HookOwnedHandle Handle { get; }
Property Value
HookId
public ulong HookId { get; set; }
Property Value
RefCount
public uint RefCount { get; set; }
Property Value
Methods
Alloc(HookList)
public static Hook Alloc(HookList hookList)
Parameters
hookList
HookList
Returns
CompareIds(Hook)
public int CompareIds(Hook sibling)
Parameters
sibling
Hook
Returns
Destroy(HookList, ulong)
public static bool Destroy(HookList hookList, ulong hookId)
Parameters
Returns
DestroyLink(HookList, Hook)
public static void DestroyLink(HookList hookList, Hook hook)
Parameters
Equals(Hook?)
public bool Equals(Hook? other)
Parameters
other
Hook
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Find(HookList, bool, HookFindFunc)
public static Hook Find(HookList hookList, bool needValids, HookFindFunc func)
Parameters
hookList
HookListneedValids
boolfunc
HookFindFunc
Returns
FindData(HookList, bool, IntPtr)
public static Hook FindData(HookList hookList, bool needValids, IntPtr data)
Parameters
Returns
FindFunc(HookList, bool, IntPtr)
public static Hook FindFunc(HookList hookList, bool needValids, IntPtr func)
Parameters
Returns
FindFuncData(HookList, bool, IntPtr, IntPtr)
public static Hook FindFuncData(HookList hookList, bool needValids, IntPtr func, IntPtr data)
Parameters
Returns
FirstValid(HookList, bool)
public static Hook FirstValid(HookList hookList, bool mayBeInCall)
Parameters
Returns
Free(HookList, Hook)
public static void Free(HookList hookList, Hook hook)
Parameters
Get(HookList, ulong)
public static Hook Get(HookList hookList, ulong hookId)
Parameters
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
InsertBefore(HookList, Hook?, Hook)
public static void InsertBefore(HookList hookList, Hook? sibling, Hook hook)
Parameters
InsertSorted(HookList, Hook, HookCompareFunc)
public static void InsertSorted(HookList hookList, Hook hook, HookCompareFunc func)
Parameters
hookList
HookListhook
Hookfunc
HookCompareFunc
NextValid(HookList, Hook, bool)
public static Hook NextValid(HookList hookList, Hook hook, bool mayBeInCall)
Parameters
Returns
Prepend(HookList, Hook)
public static void Prepend(HookList hookList, Hook hook)
Parameters
Ref(HookList, Hook)
public static Hook Ref(HookList hookList, Hook hook)
Parameters
Returns
Unref(HookList, Hook)
public static void Unref(HookList hookList, Hook hook)