![]() |
Louvre v2.18.1-1
C++ library for Wayland compositors
|
Pointer pinch update gesture event. More...
#include <LPointerPinchUpdateEvent.h>
Inheritance diagram for LPointerPinchUpdateEvent:Public Member Functions | |
| LPointerPinchUpdateEvent (UInt32 fingers=0, const LPointF &delta=LPointF(0.f, 0.f), const LPointF &deltaUnaccelerated=LPointF(0.f, 0.f), Float32 scale=1.f, Float32 rotation=0.f, UInt32 serial=LTime::nextSerial(), UInt32 ms=LTime::ms(), UInt64 us=LTime::us(), LInputDevice *device=nullptr) noexcept | |
| Constructs an LPointerPinchUpdateEvent object. | |
| void | setFingers (UInt32 fingers) noexcept |
| Sets the number of fingers involved in the pinch gesture. | |
| UInt32 | fingers () const noexcept |
| Gets the number of fingers involved in the pinch gesture. | |
| void | setDelta (const LPointF &delta) noexcept |
| Sets the movement delta of the pinch gesture. | |
| void | setDx (Float32 dx) noexcept |
| Sets the movement delta along the x-axis of the pinch gesture. | |
| void | setDy (Float32 dy) noexcept |
| Sets the movement delta along the y-axis of the pinch gesture. | |
| const LPointF & | delta () const noexcept |
| Gets the movement delta of the pinch gesture. | |
| void | setDeltaUnaccelerated (const LPointF &deltaUnaccelerated) noexcept |
| Sets the unaccelerated movement delta of the pinch gesture. | |
| void | setDxUnaccelerated (Float32 dx) noexcept |
| Sets the unaccelerated movement delta along the x-axis of the pinch gesture. | |
| void | setDyUnaccelerated (Float32 dy) noexcept |
| Sets the unaccelerated movement delta along the y-axis of the pinch gesture. | |
| const LPointF & | deltaUnaccelerated () const noexcept |
| Gets the unaccelerated movement delta of the pinch gesture. | |
| void | setScale (Float32 scale) noexcept |
| Sets the scale factor of the pinch gesture. | |
| Float32 | scale () const noexcept |
| Gets the scale factor of the pinch gesture. | |
| void | setRotation (Float32 rotation) noexcept |
| Sets the rotation angle of the pinch gesture. | |
| Float32 | rotation () const noexcept |
| Gets the rotation angle of the pinch gesture. | |
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. | |
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... | |
Pointer pinch update gesture event.
|
inlinenoexcept |
Constructs an LPointerPinchUpdateEvent object.
| fingers | The number of fingers involved in the pinch gesture. |
| delta | The movement delta of the pinch gesture. |
| deltaUnaccelerated | The unaccelerated movement delta of the pinch gesture. |
| scale | The scale factor of the pinch gesture. |
| rotation | The rotation angle of the pinch gesture. |
| 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. |
|
inlinenoexcept |
Sets the number of fingers involved in the pinch gesture.
|
inlinenoexcept |
Gets the number of fingers involved in the pinch gesture.
|
inlinenoexcept |
Sets the movement delta of the pinch gesture.
|
inlinenoexcept |
Sets the movement delta along the x-axis of the pinch gesture.
|
inlinenoexcept |
Sets the movement delta along the y-axis of the pinch gesture.
|
inlinenoexcept |
Gets the movement delta of the pinch gesture.
|
inlinenoexcept |
Sets the unaccelerated movement delta of the pinch gesture.
|
inlinenoexcept |
Sets the unaccelerated movement delta along the x-axis of the pinch gesture.
|
inlinenoexcept |
Sets the unaccelerated movement delta along the y-axis of the pinch gesture.
|
inlinenoexcept |
Gets the unaccelerated movement delta of the pinch gesture.
|
inlinenoexcept |
Sets the scale factor of the pinch gesture.
|
inlinenoexcept |
Gets the scale factor of the pinch gesture.
The scale begins at 1.0, and if e.g. the fingers moved together by 50% then the scale will become 0.5, if they move twice as far apart as initially the scale becomes 2.0, etc.
|
inlinenoexcept |
Sets the rotation angle of the pinch gesture.
|
inlinenoexcept |
Gets the rotation angle of the pinch gesture.
The angle delta is defined as the change in angle of the line formed by the 2 fingers of a pinch gesture. Clockwise rotation is represented by a positive delta, counter-clockwise by a negative delta. If e.g. the fingers are on the 12 and 6 location of a clock face plate and they move to the 1 resp. 7 location in a single event then the angle delta is 30 degrees.