Function Widget.visible

returns true if this widget and all its parents are visible

bool visible() @property;