Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qstandardgestures_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QSTANDARDGESTURES_P_H
6#define QSTANDARDGESTURES_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of other Qt classes. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtWidgets/private/qtwidgetsglobal_p.h>
21#include "private/qgesture_p.h"
22
23#ifndef QT_NO_GESTURES
24
25QT_BEGIN_NAMESPACE
26
27class QPanGestureRecognizer : public QGestureRecognizer
28{
29public:
30 explicit QPanGestureRecognizer(int pointCount = 2) : m_pointCount(pointCount) {}
31
32 QGesture *create(QObject *target) override;
33 QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override;
34 void reset(QGesture *state) override;
35
36private:
37 const int m_pointCount;
38};
39
41{
42public:
44
45 QGesture *create(QObject *target) override;
47 void reset(QGesture *state) override;
48};
49
51{
52public:
54
55 QGesture *create(QObject *target) override;
57 void reset(QGesture *state) override;
58};
59
61{
62public:
64
65 QGesture *create(QObject *target) override;
67 void reset(QGesture *state) override;
68};
69
71{
72public:
74
75 QGesture *create(QObject *target) override;
77 void reset(QGesture *state) override;
78};
79
80QT_END_NAMESPACE
81
82#endif // QT_NO_GESTURES
83
84#endif // QSTANDARDGESTURES_P_H
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.
\inmodule QtCore\reentrant
Definition qpoint.h:231
constexpr QPointF() noexcept
Constructs a null point, i.e.
Definition qpoint.h:341
\inmodule QtCore\reentrant
Definition qpoint.h:29
constexpr QPoint() noexcept
Constructs a null point, i.e.
Definition qpoint.h:134
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.
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