KTwoFingerTapRecognizer

Search for usage in LXR

KTwoFingerTapRecognizer Class Reference
Inheritance diagram for KTwoFingerTapRecognizer:

Public Member Functions

 KTwoFingerTapRecognizer ()
 
 ~KTwoFingerTapRecognizer () override
 
QGesturecreate (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
Author
Steffen Hartleib steff.nosp@m.enha.nosp@m.rtlei.nosp@m.b@t-.nosp@m.onlin.nosp@m.e.de

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()

KTwoFingerTapRecognizer::~KTwoFingerTapRecognizer ( )
override

Destructor.

Definition at line 35 of file ktwofingertap.cpp.

Member Function Documentation

◆ create()

QGesture * KTwoFingerTapRecognizer::create ( QObject * target)
overridevirtual

Qt called this member to create a new QGesture object.

Parameters
targetThe target for the gesture.
Returns
The new QGesture object.

Reimplemented from QGestureRecognizer.

Definition at line 39 of file ktwofingertap.cpp.

◆ recognize()

QGestureRecognizer::Result KTwoFingerTapRecognizer::recognize ( QGesture * gesture,
QObject * watched,
QEvent * event )
overridevirtual

Handles the given event for the watched object and update the gesture object.

Parameters
gestureThe gesture object.
watchedThe watched object.
eventThe 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
iis negative, it will be set to null.
iThe 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:
This file is part of the KDE documentation.
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.