Gets the position of the first child of a GLib.Node which contains the given data.
Optionaldata: anythe data to find
the index of the child of node which contains data, or -1 if the data is not found
Calls a function for each of the children of a GLib.Node. Note that it
doesn't descend beneath the child nodes. func must not do anything
that would modify the structure of the tree.
which types of children are to be visited, one of GLib.TraverseFlags.ALL, GLib.TraverseFlags.LEAVES and GLib.TraverseFlags.NON_LEAVES
the function to call for each visited node
Removes root and its children from the tree, freeing any memory
allocated.
Gets the maximum height of all branches beneath a GLib.Node. This is the maximum distance from the GLib.Node to all leaf nodes.
If root is null, 0 is returned. If root has no children,
1 is returned. If root has children, 2 is returned. And so on.
the maximum height of the tree beneath root
Gets the number of nodes in a tree.
which types of children are to be counted, one of GLib.TraverseFlags.ALL, GLib.TraverseFlags.LEAVES and GLib.TraverseFlags.NON_LEAVES
the number of nodes in the tree
Reverses the order of the children of a GLib.Node. (It doesn't change the order of the grandchildren.)
Traverses a tree starting at the given root GLib.Node.
It calls the given function for each node visited.
The traversal can be halted at any point by returning true from func.
func must not do anything that would modify the structure of the tree.
the order in which nodes are visited - GLib.TraverseType.IN_ORDER, GLib.TraverseType.PRE_ORDER, GLib.TraverseType.POST_ORDER, or GLib.TraverseType.LEVEL_ORDER.
which types of children are to be visited, one of GLib.TraverseFlags.ALL, GLib.TraverseFlags.LEAVES and GLib.TraverseFlags.NON_LEAVES
the maximum depth of the traversal. Nodes below this depth will not be visited. If max_depth is -1 all nodes in the tree are visited. If depth is 1, only the root is visited. If depth is 2, the root and its children are visited. And so on.
the function to call for each visited GLib.Node
Unlinks a GLib.Node from a tree, resulting in two separate trees.
Staticpop_Staticpush_
The GLib.Node struct represents one node in a n-ary tree.