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
handleHookOwnedHandle
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
hookListHookList
Returns
CompareIds(Hook)
public int CompareIds(Hook sibling)
Parameters
siblingHook
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
otherHook
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Find(HookList, bool, HookFindFunc)
public static Hook Find(HookList hookList, bool needValids, HookFindFunc func)
Parameters
hookListHookListneedValidsboolfuncHookFindFunc
Returns
FindData(HookList, bool, nint)
public static Hook FindData(HookList hookList, bool needValids, nint data)
Parameters
Returns
FindFunc(HookList, bool, nint)
public static Hook FindFunc(HookList hookList, bool needValids, nint func)
Parameters
Returns
FindFuncData(HookList, bool, nint, nint)
public static Hook FindFuncData(HookList hookList, bool needValids, nint func, nint 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
hookListHookListhookHookfuncHookCompareFunc
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)