| 321 | } |
| 322 | |
| 323 | void Window::scrollToViewport() |
| 324 | { |
| 325 | if (viewport == nullptr || !focus.has_value()) |
| 326 | return; |
| 327 | |
| 328 | CoordsXYZ newCoords = focus.value().GetPos(); |
| 329 | |
| 330 | auto mainWindow = WindowGetMain(); |
| 331 | if (mainWindow != nullptr) |
| 332 | WindowScrollToLocation(*mainWindow, newCoords); |
| 333 | } |
| 334 | |
| 335 | void Window::onDraw(RenderTarget& rt) |
| 336 | { |
nothing calls this directly
no test coverage detected