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
qgesture_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 QGESTURE_P_H
6#define QGESTURE_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>
20#include "qrect.h"
21#include "qpoint.h"
22#include "qgesture.h"
23#include "qbasictimer.h"
24#include "qelapsedtimer.h"
25#include "private/qobject_p.h"
26
27#ifndef QT_NO_GESTURES
28
30
49
51{
52 Q_DECLARE_PUBLIC(QPanGesture)
53
54public:
59
62 qreal verticalVelocity() const { return yVelocity; }
64
71 int pointCount; // ### fixme Qt 5.5: Add accessor to QPanGesture.
72};
73
104
136
138{
139 Q_DECLARE_PUBLIC(QTapGesture)
140
141public:
143 {
144 }
145
147};
148
150{
151 Q_DECLARE_PUBLIC(QTapAndHoldGesture)
152
153public:
157
160 static int Timeout;
161};
162
163QT_END_NAMESPACE
164
165#endif // QT_NO_GESTURES
166
167#endif // QGESTURE_P_H
QPointF hotSpot
Definition qgesture_p.h:44
Qt::GestureState state
Definition qgesture_p.h:43
QPointF sceneHotSpot
Definition qgesture_p.h:45
uint gestureCancelPolicy
Definition qgesture_p.h:47
void reset(QGesture *gesture) 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 timerEvent(QTimerEvent *ev) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
void reset(QGesture *gesture) 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...
QPointF startPosition[2]
Definition qgesture_p.h:102
\inmodule QtCore\reentrant
Definition qpoint.h:231
\inmodule QtCore\reentrant
Definition qpoint.h:29
QElapsedTimer time
Definition qgesture_p.h:134
void setVelocity(qreal value)
Definition qgesture_p.h:125
QPoint lastPositions[3]
Definition qgesture_p.h:131
qreal velocity() const
Definition qgesture_p.h:124