Function CanvasItem.isVisibleInTree

Returns true if the node is present in the SceneTree, its visible property is true and its inherited visibility is also true.

bool isVisibleInTree() nothrow @nogc const;