MouseCallback

Type Alias MouseCallback 

Source
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>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Box<dyn FnMut(i32, i32, i32, i32) + Send + Sync>)

Some value of type T.