Mouse wheel event. More...
Public Member Functions | |
WheelEvent (int delta, int x, int y, MouseButtons buttonsDown, KeyboardModifiers modifiersDown) | |
Creates a wheel event. More... | |
int | delta () const |
Gets the distance rotated. Negative values indicate backward rotation, positive forward. More... | |
![]() | |
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 wheel event.
Inherits MouseEvent and adds the delta attribute. The delta value indicates the distance the mouse wheel was rotated, negative values indicate backward rotation, positive forward.
cee::vis::WheelEvent::WheelEvent | ( | int | delta, |
int | x, | ||
int | y, | ||
MouseButtons | buttonsDown, | ||
KeyboardModifiers | modifiersDown | ||
) |
Creates a wheel event.
int cee::vis::WheelEvent::delta | ( | ) | const |
Gets the distance rotated. Negative values indicate backward rotation, positive forward.