|
| LPointerScrollEvent (const LPointF &axes=LPointF(0.f, 0.f), const LPointF &axesDiscrete=LPoint(0, 0), bool hasX=true, bool hasY=true, Source source=Continuous, UInt32 serial=LTime::nextSerial(), UInt32 ms=LTime::ms(), UInt64 us=LTime::us(), LInputDevice *device=nullptr) noexcept |
| Constructs an LPointerScrollEvent object.
|
|
bool | hasX () const noexcept |
| Indicates whether the event includes a value for the X axis.
|
|
void | setHasX (bool hasX) noexcept |
| Sets whether the event includes a value for the X axis.
|
|
bool | hasY () const noexcept |
| Indicates whether the event includes a value for the Y axis.
|
|
void | setHasY (bool hasY) noexcept |
| Sets whether the event includes a value for the Y axis.
|
|
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 | setDiscreteAxes (const LPoint &axes) noexcept |
| Sets the discrete scroll axes values.
|
|
void | setDiscreteAxes (Int32 x, Int32 y) noexcept |
| Sets the discrete scroll axes values using individual x and y components.
|
|
void | setDiscreteX (Int32 x) noexcept |
| Sets the discrete scroll value along the x-axis.
|
|
void | setDiscreteY (Int32 y) noexcept |
| Sets the discrete scroll value along the y-axis.
|
|
const LPoint & | discreteAxes () const noexcept |
| Retrieves the discrete 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.
|
|
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.
|
|
| ~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.
When handling mouse wheel events on the server, its recommended to choose either Wheel or WheelLegacy and avoid handling both due to their semantic differences.
However, all events should still be dispatched to clients through LPointer::sendScrollEvent(). Louvre internally filters them appropriately based on the wl_pointer
version used by the client.