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

Method hasVisibleParents

extensions/GUI/src/GUI/ScrollView/ScrollView.cpp:368–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368bool ScrollView::hasVisibleParents() const
369{
370 auto parent = this->getParent();
371 for (auto c = parent; c != nullptr; c = c->getParent())
372 {
373 if (!c->isVisible())
374 {
375 return false;
376 }
377 }
378 return true;
379}
380
381void ScrollView::relocateContainer(bool animated)
382{

Callers 2

onTouchBeganMethod · 0.95

Calls 2

getParentMethod · 0.45
isVisibleMethod · 0.45

Tested by

no test coverage detected