class cv::viz::MouseEvent

Overview

This class represents a mouse event. Moreā€¦

#include <types.hpp>

class MouseEvent
{
public:
    // enums

    enum MouseButton;
    enum Type;

    // fields

    MouseButton button;
    int modifiers;
    Point pointer;
    Type type;

    // construction

    MouseEvent(
        const Type& type,
        const MouseButton& button,
        const Point& pointer,
        int modifiers
        );
};

Detailed Documentation

This class represents a mouse event.

Construction

MouseEvent(
    const Type& type,
    const MouseButton& button,
    const Point& pointer,
    int modifiers
    )

Constructs a MouseEvent.

Parameters:

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.