Node
Constructors
Functions
Link copied to clipboard
Gets the position of a #GNode with respect to its siblings.
Link copied to clipboard
Calls a function for each of the children of a #GNode. Note that it doesn't descend beneath the child nodes. @func must not do anything that would modify the structure of the tree.
Link copied to clipboard
Returns true if @node is an ancestor of @descendant. This is true if node is the parent of @descendant, or if node is the grandparent of @descendant etc.
Link copied to clipboard
Gets the number of nodes in a tree.
Link copied to clipboard
Reverses the order of the children of a #GNode. (It doesn't change the order of the grandchildren.)
Link copied to clipboard
Traverses a tree starting at the given root #GNode. It calls the given function for each node visited. The traversal can be halted at any point by returning true from @func.