Mouse event. More...
Public Member Functions | |
MouseEvent (int x, int y, MouseButtons buttonsDown, KeyboardModifiers modifiersDown) | |
Creates a mouse event. More... | |
int | x () const |
Returns the x windows coordinate. More... | |
int | y () const |
Returns the y windows coordinate. More... | |
MouseButtons | buttons () const |
Returns the mouse buttons for this event. More... | |
KeyboardModifiers | modifiers () const |
Returns the keyboard modifiers for this event. More... | |
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.
cee::vis::MouseEvent::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.
MouseButtons cee::vis::MouseEvent::buttons | ( | ) | const |
Returns the mouse buttons for this event.
KeyboardModifiers cee::vis::MouseEvent::modifiers | ( | ) | const |
Returns the keyboard modifiers for this event.
int cee::vis::MouseEvent::x | ( | ) | const |
Returns the x windows coordinate.
In OpenGL style coordinates with origin in lower left corner
int cee::vis::MouseEvent::y | ( | ) | const |
Returns the y windows coordinate.
In OpenGL style coordinates with origin in lower left corner