KTwoFingerSwipe
#include <KTwoFingerSwipe>
Properties | |
QPointF | pos |
QPointF | scenePos |
QPointF | screenPos |
qreal | swipeAngle |
Properties inherited from QGesture | |
gestureCancelPolicy | |
gestureType | |
hasHotSpot | |
hotSpot | |
state | |
Properties inherited from QObject | |
objectName | |
Detailed Description
A two finger swipe gesture.
Provides a class for a two finger swipe gesture.
Note: The QGestureManager need a QMainwindow, to delivery the gesture.
- Since
- 5.83
Definition at line 29 of file ktwofingerswipe.h.
Property Documentation
◆ pos
|
readwrite |
Definition at line 32 of file ktwofingerswipe.h.
◆ scenePos
|
readwrite |
Definition at line 34 of file ktwofingerswipe.h.
◆ screenPos
|
readwrite |
Definition at line 33 of file ktwofingerswipe.h.
◆ swipeAngle
|
readwrite |
Definition at line 35 of file ktwofingerswipe.h.
Constructor & Destructor Documentation
◆ KTwoFingerSwipe()
The constructor.
Definition at line 159 of file ktwofingerswipe.cpp.
◆ ~KTwoFingerSwipe()
|
override |
Destructor.
Definition at line 165 of file ktwofingerswipe.cpp.
Member Function Documentation
◆ pos()
QPointF KTwoFingerSwipe::pos | ( | ) | const |
The start position of the gesture, relative to the widget that received the gesture.
Note: This is not necessarily the same position as in the widget that grabGesture() uses.
- Returns
- The start position of the gesture, relative to the widget.
Definition at line 169 of file ktwofingerswipe.cpp.
◆ scenePos()
QPointF KTwoFingerSwipe::scenePos | ( | ) | const |
- Returns
- The start scene position of the gesture.
Definition at line 189 of file ktwofingerswipe.cpp.
◆ screenPos()
QPointF KTwoFingerSwipe::screenPos | ( | ) | const |
- Returns
- The start screen position of the gesture.
Definition at line 179 of file ktwofingerswipe.cpp.
◆ setPos()
Sets the position, relative to the widget.
- Parameters
-
pos The position.
Definition at line 174 of file ktwofingerswipe.cpp.
◆ setScenePos()
Sets the scene position.
- Parameters
-
scenePos The scene position, identical to the screen position for widgets.
Definition at line 194 of file ktwofingerswipe.cpp.
◆ setScreenPos()
Sets the screen position.
- Parameters
-
screenPos The screen position.
Definition at line 184 of file ktwofingerswipe.cpp.
◆ setSwipeAngle()
void KTwoFingerSwipe::setSwipeAngle | ( | qreal | swipeAngle | ) |
Sets the angle of the swipe gesture.
- Parameters
-
swipeAngle The angle.
Definition at line 203 of file ktwofingerswipe.cpp.
◆ swipeAngle()
qreal KTwoFingerSwipe::swipeAngle | ( | ) | const |
- Returns
- The angle of the swipe gesture.
Definition at line 199 of file ktwofingerswipe.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.