| 133 | |
| 134 | |
| 135 | float Widget::getRelativeZoom(Widget* ancestor) { |
| 136 | if (this == ancestor) |
| 137 | return 1.f; |
| 138 | if (!parent) |
| 139 | return 1.f; |
| 140 | return parent->getRelativeZoom(ancestor); |
| 141 | } |
| 142 | |
| 143 | |
| 144 | math::Rect Widget::getViewport(math::Rect r) { |
nothing calls this directly
no outgoing calls
no test coverage detected