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

Pointer swipe end gesture event. More...

+ Inheritance diagram for LPointerSwipeEndEvent:

Public Member Functions

 LPointerSwipeEndEvent (UInt32 fingers=0, bool cancelled=false, UInt32 serial=LTime::nextSerial(), UInt32 ms=LTime::ms(), UInt64 us=LTime::us(), LInputDevice *device=nullptr) noexcept
 Constructs an LPointerSwipeEndEvent object. More...
 
void setFingers (UInt32 fingers) noexcept
 Sets the number of fingers involved in the swipe gesture. More...
 
UInt32 fingers () const noexcept
 Gets the number of fingers involved in the swipe gesture. More...
 
void setCancelled (bool cancelled) noexcept
 Sets whether the gesture was cancelled. More...
 
bool cancelled () const noexcept
 Gets whether the gesture was cancelled. 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...
 

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 swipe end gesture event.

Constructor & Destructor Documentation

◆ LPointerSwipeEndEvent()

LPointerSwipeEndEvent ( UInt32  fingers = 0,
bool  cancelled = false,
UInt32  serial = LTime::nextSerial(),
UInt32  ms = LTime::ms(),
UInt64  us = LTime::us(),
LInputDevice device = nullptr 
)
inlinenoexcept

Constructs an LPointerSwipeEndEvent object.

Parameters
fingersThe number of fingers involved in the swipe gesture.
cancelledIndicates whether the gesture was cancelled.
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

◆ setFingers()

void setFingers ( UInt32  fingers)
inlinenoexcept

Sets the number of fingers involved in the swipe gesture.

◆ fingers()

UInt32 fingers ( ) const
inlinenoexcept

Gets the number of fingers involved in the swipe gesture.

◆ setCancelled()

void setCancelled ( bool  cancelled)
inlinenoexcept

Sets whether the gesture was cancelled.

◆ cancelled()

bool cancelled ( ) const
inlinenoexcept

Gets whether the gesture was cancelled.