Function cv::highgui::highgui_set_mouse_callback[][src]

pub fn highgui_set_mouse_callback(
    name: &str,
    on_mouse: MouseCallback,
    user_data: *mut c_void
) -> Result<(), Error>

Set mouse handler for the specified window (identified by name). A callback handler should be provided and optional user_data can be passed around.