Table of Contents

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

NodeOwnedHandle

Methods

ChildIndex(IntPtr)

public int ChildIndex(IntPtr data)

Parameters

data IntPtr

Returns

int

ChildPosition(Node)

public int ChildPosition(Node child)

Parameters

child Node

Returns

int

ChildrenForeach(TraverseFlags, NodeForeachFunc)

public void ChildrenForeach(TraverseFlags flags, NodeForeachFunc func)

Parameters

flags TraverseFlags
func NodeForeachFunc

Copy()

public Node Copy()

Returns

Node

CopyDeep(CopyFunc)

[Version("2.4")]
public Node CopyDeep(CopyFunc copyFunc)

Parameters

copyFunc CopyFunc

Returns

Node

Depth()

public uint Depth()

Returns

uint

Destroy()

public void Destroy()

Equals(Node?)

public bool Equals(Node? other)

Parameters

other Node

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Find(TraverseType, TraverseFlags, IntPtr)

public Node Find(TraverseType order, TraverseFlags flags, IntPtr data)

Parameters

order TraverseType
flags TraverseFlags
data IntPtr

Returns

Node

FindChild(TraverseFlags, IntPtr)

public Node FindChild(TraverseFlags flags, IntPtr data)

Parameters

flags TraverseFlags
data IntPtr

Returns

Node

FirstSibling()

public Node FirstSibling()

Returns

Node

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

Node

Insert(int, Node)

public Node Insert(int position, Node node)

Parameters

position int
node Node

Returns

Node

InsertAfter(Node, Node)

public Node InsertAfter(Node sibling, Node node)

Parameters

sibling Node
node Node

Returns

Node

InsertBefore(Node, Node)

public Node InsertBefore(Node sibling, Node node)

Parameters

sibling Node
node Node

Returns

Node

IsAncestor(Node)

public bool IsAncestor(Node descendant)

Parameters

descendant Node

Returns

bool

LastChild()

public Node LastChild()

Returns

Node

LastSibling()

public Node LastSibling()

Returns

Node

MaxHeight()

public uint MaxHeight()

Returns

uint

NChildren()

public uint NChildren()

Returns

uint

NNodes(TraverseFlags)

public uint NNodes(TraverseFlags flags)

Parameters

flags TraverseFlags

Returns

uint

New(IntPtr)

public static Node New(IntPtr data)

Parameters

data IntPtr

Returns

Node

NthChild(uint)

public Node NthChild(uint n)

Parameters

n uint

Returns

Node

PopAllocator()

public static void PopAllocator()

Prepend(Node)

public Node Prepend(Node node)

Parameters

node Node

Returns

Node

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 TraverseType
flags TraverseFlags
maxDepth int
func NodeTraverseFunc
public void Unlink()