enum cv::MouseEventTypes

Overview

Mouse Events see cv::MouseCallback. Moreā€¦

#include <highgui.hpp>

enum MouseEventTypes
{
    EVENT_MOUSEMOVE     = 0,
    EVENT_LBUTTONDOWN   = 1,
    EVENT_RBUTTONDOWN   = 2,
    EVENT_MBUTTONDOWN   = 3,
    EVENT_LBUTTONUP     = 4,
    EVENT_RBUTTONUP     = 5,
    EVENT_MBUTTONUP     = 6,
    EVENT_LBUTTONDBLCLK = 7,
    EVENT_RBUTTONDBLCLK = 8,
    EVENT_MBUTTONDBLCLK = 9,
    EVENT_MOUSEWHEEL    = 10,
    EVENT_MOUSEHWHEEL   = 11,
};

Detailed Documentation

Mouse Events see cv::MouseCallback.

Enum Values

EVENT_MOUSEMOVE

indicates that the mouse pointer has moved over the window.

EVENT_LBUTTONDOWN

indicates that the left mouse button is pressed.

EVENT_RBUTTONDOWN

indicates that the right mouse button is pressed.

EVENT_MBUTTONDOWN

indicates that the middle mouse button is pressed.

EVENT_LBUTTONUP

indicates that left mouse button is released.

EVENT_RBUTTONUP

indicates that right mouse button is released.

EVENT_MBUTTONUP

indicates that middle mouse button is released.

EVENT_LBUTTONDBLCLK

indicates that left mouse button is double clicked.

EVENT_RBUTTONDBLCLK

indicates that right mouse button is double clicked.

EVENT_MBUTTONDBLCLK

indicates that middle mouse button is double clicked.

EVENT_MOUSEWHEEL

positive and negative values mean forward and backward scrolling, respectively.

EVENT_MOUSEHWHEEL

positive and negative values mean right and left scrolling, respectively.