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

Method hitTest

CvPlot/examples/examples_gui.cpp:190–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188 return false;
189 }
190 bool hitTest(const MouseEvent &mouseEvent) {
191 return getRect(mouseEvent.projection()).contains(mouseEvent.innerPoint());
192 }
193 bool mouseEvent(const MouseEvent &mouseEvent) {
194 if (mouseEvent.event() == cv::MouseEventTypes::EVENT_LBUTTONDOWN
195 && hitTest(mouseEvent)){

Callers

nothing calls this directly

Calls 2

projectionMethod · 0.80
innerPointMethod · 0.80

Tested by

no test coverage detected