Louvre  v2.12.0-1
C++ library for Wayland compositors
Public Member Functions | Public Attributes | List of all members
LPointerMoveEvent Class Referencefinal

Pointer movement event. More...

+ Inheritance diagram for LPointerMoveEvent:

Public Member Functions

 LPointerMoveEvent (const LPointF &delta=LPointF(0.f, 0.f), const LPointF &deltaUnaccelerated=LPointF(0.f, 0.f), UInt32 serial=LTime::nextSerial(), UInt32 ms=LTime::ms(), UInt64 us=LTime::us(), LInputDevice *device=nullptr) noexcept
 Constructs an LPointerMoveEvent object. More...
 
void setDelta (const LPointF &delta) noexcept
 Sets the movement delta of the pointer. More...
 
void setDx (Float32 dx) noexcept
 Sets the movement delta along the x-axis of the pointer. More...
 
void setDy (Float32 dy) noexcept
 Sets the movement delta along the y-axis of the pointer. More...
 
const LPointFdelta () const noexcept
 Gets the movement delta of the pointer. More...
 
void setDeltaUnaccelerated (const LPointF &deltaUnaccelerated) noexcept
 Sets the unaccelerated movement delta of the pointer. More...
 
void setDxUnaccelerated (Float32 dx) noexcept
 Sets the unaccelerated movement delta along the x-axis of the pointer. More...
 
void setDyUnaccelerated (Float32 dy) noexcept
 Sets the unaccelerated movement delta along the y-axis of the pointer. More...
 
const LPointFdeltaUnaccelerated () const noexcept
 Gets the unaccelerated movement delta of the pointer. More...
 
- Public Member Functions inherited from LInputEvent
void setDevice (LInputDevice *device) noexcept
 Sets the input device that originated the event. More...
 
LInputDevicedevice () const noexcept
 Gets the input device that originated this event. More...
 
- Public Member Functions inherited from LEvent
 ~LEvent () noexcept=default
 Destructor. More...
 
Type type () const noexcept
 Retrieves the type of the event. More...
 
Subtype subtype () const noexcept
 Retrieves the subtype of the event. More...
 
void setSerial (UInt32 serial) noexcept
 Sets the serial of the event. More...
 
UInt32 serial () const noexcept
 Retrieves the serial of the event. More...
 
void setMs (UInt32 ms) noexcept
 Sets the time the event was generated in milliseconds. More...
 
UInt32 ms () const noexcept
 Retrieves the time the event was generated in milliseconds. More...
 
void setUs (UInt32 us) noexcept
 Sets the time the event was generated in microseconds. More...
 
UInt64 us () const noexcept
 Retrieves the time the event was generated in microseconds. More...
 
LEventcopy () const noexcept
 Creates a deep copy of the event. More...
 

Public Attributes

LPointF localPos
 The surface or view local position where the pointer is positioned in surface coordinates. More...
 

Additional Inherited Members

- 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...
 

Detailed Description

Pointer movement event.

Constructor & Destructor Documentation

◆ LPointerMoveEvent()

LPointerMoveEvent ( const LPointF delta = LPointF(0.f, 0.f),
const LPointF deltaUnaccelerated = LPointF(0.f, 0.f),
UInt32  serial = LTime::nextSerial(),
UInt32  ms = LTime::ms(),
UInt64  us = LTime::us(),
LInputDevice device = nullptr 
)
inlinenoexcept

Constructs an LPointerMoveEvent object.

Parameters
deltaThe movement delta of the pointer.
deltaUnacceleratedThe unaccelerated movement delta of the pointer.
serialThe serial number of the event.
msThe millisecond timestamp of the event.
usThe microsecond timestamp of the event.
deviceThe input device that originated the event.

Member Function Documentation

◆ setDelta()

void setDelta ( const LPointF delta)
inlinenoexcept

Sets the movement delta of the pointer.

◆ setDx()

void setDx ( Float32  dx)
inlinenoexcept

Sets the movement delta along the x-axis of the pointer.

◆ setDy()

void setDy ( Float32  dy)
inlinenoexcept

Sets the movement delta along the y-axis of the pointer.

◆ delta()

const LPointF& delta ( ) const
inlinenoexcept

Gets the movement delta of the pointer.

◆ setDeltaUnaccelerated()

void setDeltaUnaccelerated ( const LPointF deltaUnaccelerated)
inlinenoexcept

Sets the unaccelerated movement delta of the pointer.

◆ setDxUnaccelerated()

void setDxUnaccelerated ( Float32  dx)
inlinenoexcept

Sets the unaccelerated movement delta along the x-axis of the pointer.

◆ setDyUnaccelerated()

void setDyUnaccelerated ( Float32  dy)
inlinenoexcept

Sets the unaccelerated movement delta along the y-axis of the pointer.

◆ deltaUnaccelerated()

const LPointF& deltaUnaccelerated ( ) const
inlinenoexcept

Gets the unaccelerated movement delta of the pointer.

Member Data Documentation

◆ localPos

LPointF localPos
mutable

The surface or view local position where the pointer is positioned in surface coordinates.