| 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 | |
| 470 | void AViewContainerBase::setSize(glm::ivec2 size) { |
| 471 | mSizeSet = true; |
no test coverage detected