is_ancestor


Description:

public bool is_ancestor (Widget ancestor)

Determines whether this is somewhere inside ancestor, possibly with intermediate containers.

Parameters:

this

a Widget

ancestor

another Widget

Returns:

true if ancestor contains this as a child, grandchild, great grandchild, etc.