Node.insertBefore

Inserts a GNode beneath the parent before the given sibling.

class Node
insertBefore

Parameters

sibling Node

the sibling GNode to place node before. If sibling is NULL, the node is inserted as the last child of parent.

node Node

the GNode to insert

Return Value

Type: Node

the inserted GNode

Meta