| 140 | } |
| 141 | |
| 142 | inline |
| 143 | void Window::setMouseCallback() { |
| 144 | cv::setMouseCallback(_windowName, [](int event, int x, int y, int flags, void* userdata) { |
| 145 | Window& window = *static_cast<Window*>(userdata); |
| 146 | window.updateSize(); |
| 147 | MouseEvent mouseEvent(window._mouseAdapter.getAxes(), window._mat.size(), event, x, y, flags); |
| 148 | if (window._mouseAdapter.mouseEvent(mouseEvent)) { |
| 149 | window.update(); |
| 150 | } |
| 151 | }, this); |
| 152 | } |
| 153 | |
| 154 | } |
| 155 |
nothing calls this directly
no test coverage detected