| 89 | |
| 90 | |
| 91 | math::Rect Widget::getChildrenBoundingBox() { |
| 92 | math::Vec min = math::Vec(INFINITY, INFINITY); |
| 93 | math::Vec max = math::Vec(-INFINITY, -INFINITY); |
| 94 | for (Widget* child : children) { |
| 95 | min = min.min(child->box.getTopLeft()); |
| 96 | max = max.max(child->box.getBottomRight()); |
| 97 | } |
| 98 | return math::Rect::fromMinMax(min, max); |
| 99 | } |
| 100 | |
| 101 | |
| 102 | math::Rect Widget::getVisibleChildrenBoundingBox() { |
no test coverage detected