[−][src]Function opencv::highgui::set_mouse_callback
pub fn set_mouse_callback(winname: &str, on_mouse: MouseCallback) -> Result<()>
@example samples/cpp/create_mask.cpp This program demonstrates using mouse events and how to make and use a mask image (black and white) .
Sets mouse handler for the specified window
Parameters
- winname: Name of the window.
- onMouse: Callback function for mouse events. See OpenCV samples on how to specify and use the callback.
- userdata: The optional parameter passed to the callback.
C++ default parameters
- userdata: 0