Louvre v2.14.0-1
C++ library for Wayland compositors
|
Pointer scroll event. More...
#include <LPointerScrollEvent.h>
Public Types | |
enum | Source : UInt32 |
Source of a scroll event. More... | |
Public Types inherited from LEvent | |
enum class | Type : UInt8 |
Defines the type of event. More... | |
enum class | Subtype : UInt8 |
Defines the subtype of event. More... | |
Public Member Functions | |
LPointerScrollEvent (const LPointF &axes=LPointF(0.f, 0.f), const LPointF &axes120=LPointF(0.f, 0.f), Source source=Continuous, UInt32 serial=LTime::nextSerial(), UInt32 ms=LTime::ms(), UInt64 us=LTime::us(), LInputDevice *device=nullptr) noexcept | |
Constructs an LPointerScrollEvent object. | |
void | setAxes (const LPointF &axes) noexcept |
Sets the scroll axes values. | |
void | setAxes (Float32 x, Float32 y) noexcept |
Sets the scroll axes values. | |
void | setX (Float32 x) noexcept |
Sets the scroll value along the x-axis. | |
void | setY (Float32 y) noexcept |
Sets the scroll value along the y-axis. | |
const LPointF & | axes () const noexcept |
Gets the scroll axes values. | |
void | setAxes120 (const LPointF &axes) noexcept |
Sets the high-resolution scroll axes values. | |
void | setAxes120 (Float32 x, Float32 y) noexcept |
Sets the high-resolution scroll axes values. | |
void | set120X (Float32 x) noexcept |
Sets the high-resolution scroll value along the x-axis. | |
void | set120Y (Float32 y) noexcept |
Sets the high-resolution scroll value along the y-axis. | |
const LPointF & | axes120 () const noexcept |
Gets the high-resolution scroll axes values. | |
void | setSource (Source source) noexcept |
Sets the source of the scroll event. | |
Source | source () const noexcept |
Gets the source of the scroll event. | |
Public Member Functions inherited from LInputEvent | |
void | setDevice (LInputDevice *device) noexcept |
Sets the input device that originated the event. | |
LInputDevice * | device () const noexcept |
Gets the input device that originated this event. | |
Public Member Functions inherited from LEvent | |
~LEvent () noexcept=default | |
Destructor. | |
Type | type () const noexcept |
Retrieves the type of the event. | |
Subtype | subtype () const noexcept |
Retrieves the subtype of the event. | |
void | setSerial (UInt32 serial) noexcept |
Sets the serial of the event. | |
UInt32 | serial () const noexcept |
Retrieves the serial of the event. | |
void | setMs (UInt32 ms) noexcept |
Sets the time the event was generated in milliseconds. | |
UInt32 | ms () const noexcept |
Retrieves the time the event was generated in milliseconds. | |
void | setUs (UInt32 us) noexcept |
Sets the time the event was generated in microseconds. | |
UInt64 | us () const noexcept |
Retrieves the time the event was generated in microseconds. | |
LEvent * | copy () const noexcept |
Creates a deep copy of the event. | |
Pointer scroll event.
|
inlinenoexcept |
Constructs an LPointerScrollEvent object.
axes | The scroll axes values. |
axes120 | The scroll axes values for high-resolution scrolling. |
source | The source of the scroll event. |
serial | The serial number of the event. |
ms | The millisecond timestamp of the event. |
us | The microsecond timestamp of the event. |
device | The input device that originated the event. |
Sets the high-resolution scroll axes values.
Gets the high-resolution scroll axes values.
A value that is a fraction of ±120 indicates a wheel movement less than one logical click, a caller should either scroll by the respective fraction of the normal scroll distance or accumulate that value until a multiple of 120 is reached.
|
inlinenoexcept |
Gets the source of the scroll event.