[][src]Type Definition opencv::highgui::MouseCallback

type MouseCallback = dyn FnMut(i32, i32, i32, i32) + Send + Sync + 'static;

Callback function for mouse events. see cv::setMouseCallback

Parameters

  • event: one of the cv::MouseEventTypes constants.
  • x: The x-coordinate of the mouse event.
  • y: The y-coordinate of the mouse event.
  • flags: one of the cv::MouseEventFlags constants.
  • userdata: The optional parameter.