Table of Contents

Class Node

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class Node
Inheritance
Node
Inherited Members

Methods

ChildIndex(NodeHandle, IntPtr)

Calls native method g_node_child_index.

public static extern int ChildIndex(NodeHandle node, IntPtr data)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

int

Transfer ownership: None Nullable: False

ChildPosition(NodeHandle, NodeHandle)

Calls native method g_node_child_position.

public static extern int ChildPosition(NodeHandle node, NodeHandle child)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

child NodeHandle

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

ChildrenForeach(NodeHandle, TraverseFlags, NodeForeachFunc, IntPtr)

Calls native method g_node_children_foreach.

public static extern void ChildrenForeach(NodeHandle node, TraverseFlags flags, NodeForeachFunc func, IntPtr data)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

flags TraverseFlags

Transfer ownership: None Nullable: False

func NodeForeachFunc

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Copy(NodeHandle)

Calls native method g_node_copy.

public static extern NodeUnownedHandle Copy(NodeHandle node)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

CopyDeep(NodeHandle, CopyFunc, IntPtr)

Calls native method g_node_copy_deep. Version: 2.4

[Version("2.4")]
public static extern NodeUnownedHandle CopyDeep(NodeHandle node, CopyFunc copyFunc, IntPtr data)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

copyFunc CopyFunc

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

Depth(NodeHandle)

Calls native method g_node_depth.

public static extern uint Depth(NodeHandle node)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

Destroy(NodeHandle)

Calls native method g_node_destroy.

public static extern void Destroy(NodeHandle root)

Parameters

root NodeHandle

Transfer ownership: None Nullable: False

Find(NodeHandle, TraverseType, TraverseFlags, IntPtr)

Calls native method g_node_find.

public static extern NodeUnownedHandle Find(NodeHandle root, TraverseType order, TraverseFlags flags, IntPtr data)

Parameters

root NodeHandle

Transfer ownership: None Nullable: False

order TraverseType

Transfer ownership: None Nullable: False

flags TraverseFlags

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

FindChild(NodeHandle, TraverseFlags, IntPtr)

Calls native method g_node_find_child.

public static extern NodeUnownedHandle FindChild(NodeHandle node, TraverseFlags flags, IntPtr data)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

flags TraverseFlags

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

FirstSibling(NodeHandle)

Calls native method g_node_first_sibling.

public static extern NodeUnownedHandle FirstSibling(NodeHandle node)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

GetRoot(NodeHandle)

Calls native method g_node_get_root.

public static extern NodeUnownedHandle GetRoot(NodeHandle node)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

Insert(NodeHandle, int, NodeHandle)

Calls native method g_node_insert.

public static extern NodeUnownedHandle Insert(NodeHandle parent, int position, NodeHandle node)

Parameters

parent NodeHandle

Transfer ownership: None Nullable: False

position int

Transfer ownership: None Nullable: False

node NodeHandle

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

InsertAfter(NodeHandle, NodeHandle, NodeHandle)

Calls native method g_node_insert_after.

public static extern NodeUnownedHandle InsertAfter(NodeHandle parent, NodeHandle sibling, NodeHandle node)

Parameters

parent NodeHandle

Transfer ownership: None Nullable: False

sibling NodeHandle

Transfer ownership: None Nullable: False

node NodeHandle

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

InsertBefore(NodeHandle, NodeHandle, NodeHandle)

Calls native method g_node_insert_before.

public static extern NodeUnownedHandle InsertBefore(NodeHandle parent, NodeHandle sibling, NodeHandle node)

Parameters

parent NodeHandle

Transfer ownership: None Nullable: False

sibling NodeHandle

Transfer ownership: None Nullable: False

node NodeHandle

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

IsAncestor(NodeHandle, NodeHandle)

Calls native method g_node_is_ancestor.

public static extern bool IsAncestor(NodeHandle node, NodeHandle descendant)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

descendant NodeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

LastChild(NodeHandle)

Calls native method g_node_last_child.

public static extern NodeUnownedHandle LastChild(NodeHandle node)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

LastSibling(NodeHandle)

Calls native method g_node_last_sibling.

public static extern NodeUnownedHandle LastSibling(NodeHandle node)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

MaxHeight(NodeHandle)

Calls native method g_node_max_height.

public static extern uint MaxHeight(NodeHandle root)

Parameters

root NodeHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

NChildren(NodeHandle)

Calls native method g_node_n_children.

public static extern uint NChildren(NodeHandle node)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

NNodes(NodeHandle, TraverseFlags)

Calls native method g_node_n_nodes.

public static extern uint NNodes(NodeHandle root, TraverseFlags flags)

Parameters

root NodeHandle

Transfer ownership: None Nullable: False

flags TraverseFlags

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

New(IntPtr)

Calls native function g_node_new.

public static extern NodeUnownedHandle New(IntPtr data)

Parameters

data IntPtr

Transfer ownership: None Nullable: True

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

NthChild(NodeHandle, uint)

Calls native method g_node_nth_child.

public static extern NodeUnownedHandle NthChild(NodeHandle node, uint n)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

n uint

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

PopAllocator()

Calls native function g_node_pop_allocator.

public static extern void PopAllocator()

Prepend(NodeHandle, NodeHandle)

Calls native method g_node_prepend.

public static extern NodeUnownedHandle Prepend(NodeHandle parent, NodeHandle node)

Parameters

parent NodeHandle

Transfer ownership: None Nullable: False

node NodeHandle

Transfer ownership: None Nullable: False

Returns

NodeUnownedHandle

Transfer ownership: None Nullable: False

PushAllocator(AllocatorHandle)

Calls native function g_node_push_allocator.

public static extern void PushAllocator(AllocatorHandle allocator)

Parameters

allocator AllocatorHandle

Transfer ownership: None Nullable: False

ReverseChildren(NodeHandle)

Calls native method g_node_reverse_children.

public static extern void ReverseChildren(NodeHandle node)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False

Traverse(NodeHandle, TraverseType, TraverseFlags, int, NodeTraverseFunc, IntPtr)

Calls native method g_node_traverse.

public static extern void Traverse(NodeHandle root, TraverseType order, TraverseFlags flags, int maxDepth, NodeTraverseFunc func, IntPtr data)

Parameters

root NodeHandle

Transfer ownership: None Nullable: False

order TraverseType

Transfer ownership: None Nullable: False

flags TraverseFlags

Transfer ownership: None Nullable: False

maxDepth int

Transfer ownership: None Nullable: False

func NodeTraverseFunc

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Calls native method g_node_unlink.

public static extern void Unlink(NodeHandle node)

Parameters

node NodeHandle

Transfer ownership: None Nullable: False