MCPcopy Create free account
hub / github.com/axmolengine/axmol / isAncestorsVisible

Method isAncestorsVisible

core/ui/UIWidget.cpp:741–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741bool Widget::isAncestorsVisible(Node* node)
742{
743 if (nullptr == node)
744 {
745 return true;
746 }
747 Node* parent = node->getParent();
748
749 if (parent && !parent->isVisible())
750 {
751 return false;
752 }
753 return this->isAncestorsVisible(parent);
754}
755
756bool Widget::isAncestorsEnabled()
757{

Callers

nothing calls this directly

Calls 2

getParentMethod · 0.45
isVisibleMethod · 0.45

Tested by

no test coverage detected