| 115 | |
| 116 | |
| 117 | void MainWindow::getMousePosition(int& mx, int& my) const { |
| 118 | window->getMouse(mx, my); |
| 119 | mx -= (width >> 1) + xOrigin; |
| 120 | my -= (viewHeight >> 1) + getYOffset(); |
| 121 | } |
| 122 | |
| 123 | |
| 124 | void MainWindow::grabMouse() { |
no test coverage detected