MCPcopy Create free account
hub / github.com/Profactor/cv-plot / setMouseCallback

Method setMouseCallback

CvPlot/inc/CvPlot/gui/Window.h:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142inline
143void 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

Callers

nothing calls this directly

Calls 4

updateSizeMethod · 0.80
sizeMethod · 0.80
mouseEventMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected