pub type MouseCallback = Option<Box<dyn FnMut(i32, i32, i32, i32) + Send + Sync + 'static>>;Expand description
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.
Aliased Type§
pub enum MouseCallback {
None,
Some(Box<dyn FnMut(i32, i32, i32, i32) + Send + Sync>),
}