cee::vis::WheelEvent Class Reference

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...
 
- Public Member Functions inherited from cee::vis::MouseEvent
 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...
 
Inheritance diagram for cee::vis::WheelEvent:
cee::vis::MouseEvent

Detailed Description

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.

Constructor & Destructor Documentation

cee::vis::WheelEvent::WheelEvent ( int  delta,
int  x,
int  y,
MouseButtons  buttonsDown,
KeyboardModifiers  modifiersDown 
)

Creates a wheel event.

Member Function Documentation

int cee::vis::WheelEvent::delta ( ) const

Gets the distance rotated. Negative values indicate backward rotation, positive forward.