Class Node
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Node
- Inheritance
-
Node
- Inherited Members
Constructors
Node()
public Node()
Node(NodeOwnedHandle)
public Node(NodeOwnedHandle handle)
Parameters
handle
NodeOwnedHandle
Properties
Handle
public NodeOwnedHandle Handle { get; }
Property Value
Methods
ChildIndex(IntPtr)
public int ChildIndex(IntPtr data)
Parameters
data
IntPtr
Returns
ChildPosition(Node)
public int ChildPosition(Node child)
Parameters
child
Node
Returns
ChildrenForeach(TraverseFlags, NodeForeachFunc)
public void ChildrenForeach(TraverseFlags flags, NodeForeachFunc func)
Parameters
flags
TraverseFlagsfunc
NodeForeachFunc
Copy()
public Node Copy()
Returns
CopyDeep(CopyFunc)
[Version("2.4")]
public Node CopyDeep(CopyFunc copyFunc)
Parameters
copyFunc
CopyFunc
Returns
Depth()
public uint Depth()
Returns
Destroy()
public void Destroy()
Equals(Node?)
public bool Equals(Node? other)
Parameters
other
Node
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(TraverseType, TraverseFlags, IntPtr)
public Node Find(TraverseType order, TraverseFlags flags, IntPtr data)
Parameters
order
TraverseTypeflags
TraverseFlagsdata
IntPtr
Returns
FindChild(TraverseFlags, IntPtr)
public Node FindChild(TraverseFlags flags, IntPtr data)
Parameters
flags
TraverseFlagsdata
IntPtr
Returns
FirstSibling()
public Node FirstSibling()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetRoot()
public Node GetRoot()
Returns
Insert(int, Node)
public Node Insert(int position, Node node)
Parameters
Returns
InsertAfter(Node, Node)
public Node InsertAfter(Node sibling, Node node)
Parameters
Returns
InsertBefore(Node, Node)
public Node InsertBefore(Node sibling, Node node)
Parameters
Returns
IsAncestor(Node)
public bool IsAncestor(Node descendant)
Parameters
descendant
Node
Returns
LastChild()
public Node LastChild()
Returns
LastSibling()
public Node LastSibling()
Returns
MaxHeight()
public uint MaxHeight()
Returns
NChildren()
public uint NChildren()
Returns
NNodes(TraverseFlags)
public uint NNodes(TraverseFlags flags)
Parameters
flags
TraverseFlags
Returns
New(IntPtr)
public static Node New(IntPtr data)
Parameters
data
IntPtr
Returns
NthChild(uint)
public Node NthChild(uint n)
Parameters
n
uint
Returns
PopAllocator()
public static void PopAllocator()
Prepend(Node)
public Node Prepend(Node node)
Parameters
node
Node
Returns
PushAllocator(Allocator)
public static void PushAllocator(Allocator allocator)
Parameters
allocator
Allocator
ReverseChildren()
public void ReverseChildren()
Traverse(TraverseType, TraverseFlags, int, NodeTraverseFunc)
public void Traverse(TraverseType order, TraverseFlags flags, int maxDepth, NodeTraverseFunc func)
Parameters
order
TraverseTypeflags
TraverseFlagsmaxDepth
intfunc
NodeTraverseFunc
Unlink()
public void Unlink()