MCPcopy Create free account
hub / github.com/aui-framework/aui / getViewAtRecursive

Method getViewAtRecursive

aui.views/src/AUI/View/AViewContainerBase.cpp:456–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456_<AView> AViewContainerBase::getViewAtRecursive(glm::ivec2 pos, ABitField<AViewLookupFlags> flags) const noexcept {
457 _<AView> target = getViewAt(pos, flags);
458 if (!target)
459 return nullptr;
460 int depth = 0;
461 while (auto asContainer = _cast<AViewContainerBase>(target)) {
462 pos -= asContainer->getPosition();
463 target = asContainer->getViewAt(pos, flags);
464 if (!target)
465 return asContainer;
466 }
467 return target;
468}
469
470void AViewContainerBase::setSize(glm::ivec2 size) {
471 mSizeSet = true;

Callers 2

getViewAtRecursiveFunction · 0.80
DevtoolsLayoutTabMethod · 0.80

Calls 3

getPositionMethod · 0.80
getViewAtFunction · 0.50
getViewAtMethod · 0.45

Tested by

no test coverage detected