KTwoFingerTapRecognizer
Public Member Functions | |
KTwoFingerTapRecognizer () | |
~KTwoFingerTapRecognizer () override | |
QGesture * | create (QObject *target) override |
Result | recognize (QGesture *gesture, QObject *watched, QEvent *event) override |
void | setTapRadius (int i) |
int | tapRadius () const |
Public Member Functions inherited from QGestureRecognizer | |
virtual void | reset (QGesture *gesture) |
Additional Inherited Members | |
Public Types inherited from QGestureRecognizer | |
typedef | Result |
enum | ResultFlag |
Static Public Member Functions inherited from QGestureRecognizer | |
Qt::GestureType | registerRecognizer (QGestureRecognizer *recognizer) |
void | unregisterRecognizer (Qt::GestureType type) |
Public Attributes inherited from QGestureRecognizer | |
CancelGesture | |
ConsumeEventHint | |
FinishGesture | |
Ignore | |
MayBeGesture | |
ResultHint_Mask | |
ResultState_Mask | |
TriggerGesture | |
Detailed Description
The recognizer for a two finger tap gesture.
Provides the recognizer for a two finger tap gesture.
- Since
- 5.83
Definition at line 99 of file ktwofingertap.h.
Constructor & Destructor Documentation
◆ KTwoFingerTapRecognizer()
KTwoFingerTapRecognizer::KTwoFingerTapRecognizer | ( | ) |
The constructor.
Definition at line 29 of file ktwofingertap.cpp.
◆ ~KTwoFingerTapRecognizer()
|
override |
Destructor.
Definition at line 35 of file ktwofingertap.cpp.
Member Function Documentation
◆ create()
Qt called this member to create a new QGesture object.
- Parameters
-
target The target for the gesture.
- Returns
- The new QGesture object.
Reimplemented from QGestureRecognizer.
Definition at line 39 of file ktwofingertap.cpp.
◆ recognize()
|
overridevirtual |
Handles the given event for the watched object and update the gesture object.
- Parameters
-
gesture The gesture object. watched The watched object. event The event.
- Returns
- The result reflects how much of the gesture has been recognized.
Implements QGestureRecognizer.
Definition at line 45 of file ktwofingertap.cpp.
◆ setTapRadius()
void KTwoFingerTapRecognizer::setTapRadius | ( | int | i | ) |
Set the maximum wiggle room for a touch point.
If
- Parameters
-
i is negative, it will be set to null. i The maximum wiggle room.
Definition at line 114 of file ktwofingertap.cpp.
◆ tapRadius()
int KTwoFingerTapRecognizer::tapRadius | ( | ) | const |
- Returns
- The maximum wiggle room for a touch point.
Definition at line 123 of file ktwofingertap.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.