cee::vis::MouseEvent
-
class MouseEvent
Mouse event.
Stores X and Y screen coordinates, mouse buttons and keyboard modifiers. X and Y screen coordinates are in OpenGL style coordinates with origin in lower left corner.
Subclassed by WheelEvent
Public Functions
-
MouseEvent(int x, int y, MouseButtons buttonsDown, KeyboardModifiers modifiersDown)
Creates a mouse event.
The input (window) coordinates must be specified in OpenGL style coordinates, which means a right handed coordinate system with the origin in the lower left corner of the window.
-
int x() const
Returns the x windows coordinate.
In OpenGL style coordinates with origin in lower left corner
-
int y() const
Returns the y windows coordinate.
In OpenGL style coordinates with origin in lower left corner
-
MouseButtons buttons() const
Returns the mouse buttons for this event.
-
KeyboardModifiers modifiers() const
Returns the keyboard modifiers for this event.
-
MouseEvent(int x, int y, MouseButtons buttonsDown, KeyboardModifiers modifiersDown)