LuciadCPillar 2024.0.08
|
Implementation of luciad::IInputEvent
that represents a scroll gesture (for example using the mouse wheel).
More...
#include <luciad/input/IInputEvent.h>
Public Member Functions | |
ScrollEvent (Coordinate location, ModifierKeys modifierKeys, double deltaY) | |
Creates a scroll event. More... | |
double | getDeltaY () const noexcept |
Returns the vertical scroll amount and direction. More... | |
Coordinate | getLocation () const noexcept |
Returns the position of the event. More... | |
ModifierKeys | getModifierKeys () const noexcept |
Returns the modifiers of the event. More... | |
Public Member Functions inherited from luciad::IInputEvent | |
virtual | ~IInputEvent ()=default |
Implementation of luciad::IInputEvent
that represents a scroll gesture (for example using the mouse wheel).
This class contains the location, the scroll amount and direction and modifiers if any.
|
inline |
Creates a scroll event.
location | The location of the event, defined in device independent pixels. |
modifierKeys | The modifiers of the event. |
deltaY | the vertical scroll amount and direction. |
|
inlinenoexcept |
Returns the vertical scroll amount and direction.
A positive value indicates scrolling up, a negative value indicates scrolling down.
A delta of 1.0 (or -1.0) should be interpreted as follows:
|
inlinenoexcept |
Returns the position of the event.
It is expressed in device independent pixel coordinates with top-left corner of the map being the (0,0) position.
|
inlinenoexcept |
Returns the modifiers of the event.