DISTRHO Plugin Framework
|
#include <Widget.hpp>
Public Member Functions | |
ScrollEvent () noexcept | |
Public Member Functions inherited from Widget::BaseEvent | |
BaseEvent () noexcept | |
virtual | ~BaseEvent () noexcept |
Public Attributes | |
Point< double > | pos |
Point< double > | absolutePos |
Point< double > | delta |
ScrollDirection | direction |
Public Attributes inherited from Widget::BaseEvent | |
uint | mod |
uint | flags |
uint | time |
Mouse scroll event.
The scroll distance is expressed in "lines", an arbitrary unit that corresponds to a single tick of a detented mouse wheel. For example, delta.y
= 1.0 scrolls 1 line up. Some systems and devices support finer resolution and/or higher values for fast scrolls, so programs should handle any value gracefully.
|
inlinenoexcept |
Constructor for default/null values
Point<double> Widget::ScrollEvent::pos |
The widget-relative coordinates of the pointer.
Point<double> Widget::ScrollEvent::absolutePos |
The absolute coordinates of the pointer.
Point<double> Widget::ScrollEvent::delta |
The scroll distance.
ScrollDirection Widget::ScrollEvent::direction |
The direction of the scroll or "smooth".