5#ifndef QSTANDARDGESTURES_P_H
6#define QSTANDARDGESTURES_P_H
19#include <QtWidgets/private/qtwidgetsglobal_p.h>
21#include "private/qgesture_p.h"
27class QPanGestureRecognizer :
public QGestureRecognizer
30 explicit QPanGestureRecognizer(
int pointCount = 2) : m_pointCount(pointCount) {}
32 QGesture *create(QObject *target) override;
33 QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override;
34 void reset(QGesture *state) override;
37 const int m_pointCount;
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
QPinchGestureRecognizer()
void reset(QGesture *state) override
This function is called by Qt to reset a given gesture.
\inmodule QtCore\reentrant
constexpr QPointF() noexcept
Constructs a null point, i.e.
\inmodule QtCore\reentrant
constexpr QPoint() noexcept
Constructs a null point, i.e.
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
void reset(QGesture *state) override
This function is called by Qt to reset a given gesture.
QSwipeGestureRecognizer()
QTapAndHoldGestureRecognizer()
void reset(QGesture *state) override
This function is called by Qt to reset a given gesture.
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
void reset(QGesture *state) override
This function is called by Qt to reset a given gesture.
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
static QPointF panOffset(const QList< QEventPoint > &touchPoints, int maxCount)
static const qreal kSingleStepScaleMin