![]() |
OpenCV
3.4.20
Open Source Computer Vision
|
This class represents a mouse event. More...
#include <opencv2/viz/types.hpp>
Public Types | |
enum | MouseButton { NoButton = 0, LeftButton, MiddleButton, RightButton, VScroll } |
enum | Type { MouseMove = 1, MouseButtonPress, MouseButtonRelease, MouseScrollDown, MouseScrollUp, MouseDblClick } |
Public Member Functions | |
MouseEvent (const Type &type, const MouseButton &button, const Point &pointer, int modifiers) | |
Constructs a MouseEvent. More... | |
Public Attributes | |
MouseButton | button |
int | modifiers |
Point | pointer |
Type | type |
This class represents a mouse event.
cv::viz::MouseEvent::MouseEvent | ( | const Type & | type, |
const MouseButton & | button, | ||
const Point & | pointer, | ||
int | modifiers | ||
) |
Constructs a MouseEvent.
type | Type of the event. This can be MouseMove, MouseButtonPress, MouseButtonRelease**, MouseScrollDown, MouseScrollUp, MouseDblClick. |
button | Mouse button. This can be NoButton, LeftButton, MiddleButton, RightButton**, VScroll. |
pointer | Position of the event. |
modifiers | Signals if alt, ctrl or shift are pressed or their combination. |
MouseButton cv::viz::MouseEvent::button |
int cv::viz::MouseEvent::modifiers |
Point cv::viz::MouseEvent::pointer |
Type cv::viz::MouseEvent::type |