Node.depth

uint depth()

Gets the depth of a #GNode.

If node is null the depth is 0. The root node has a depth of 1. For the children of the root node the depth is 2. And so on.

Returns

the depth of the #GNode