isAncestor

fun isAncestor(descendant: Node): Boolean

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.

Return

true if @node is an ancestor of @descendant

Parameters

descendant

a #GNode