Qt 6.x
The Qt SDK
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
4#ifndef QGESTURE_P_H
5#define QGESTURE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include "qrect.h"
20#include "qpoint.h"
21#include "qgesture.h"
22#include "qelapsedtimer.h"
23#include "private/qobject_p.h"
24
25#ifndef QT_NO_GESTURES
26
28
30{
31 Q_DECLARE_PUBLIC(QGesture)
32
33public:
35 : gestureType(Qt::CustomGesture), state(Qt::NoGesture),
37 {
38 }
39
46};
47
49{
50 Q_DECLARE_PUBLIC(QPanGesture)
51
52public:
55 {
56 }
57
60 qreal verticalVelocity() const { return yVelocity; }
62
69 int pointCount; // ### fixme Qt 5.5: Add accessor to QPanGesture.
70};
71
73{
74 Q_DECLARE_PUBLIC(QPinchGesture)
75
76public:
80 isNewSequence(true)
81 {
82 }
83
84 QPinchGesture::ChangeFlags totalChangeFlags;
85 QPinchGesture::ChangeFlags changeFlags;
86
90
94
98
101};
102
104{
105 Q_DECLARE_PUBLIC(QSwipeGesture)
106
107public:
108 enum State {
112 };
113
115 : horizontalDirection(QSwipeGesture::NoDirection),
116 verticalDirection(QSwipeGesture::NoDirection),
117 swipeAngle(0),
119 {
120 }
121
122 qreal velocity() const { return velocityValue; }
124
128
133};
134
136{
137 Q_DECLARE_PUBLIC(QTapGesture)
138
139public:
141 {
142 }
143
145};
146
148{
149 Q_DECLARE_PUBLIC(QTapAndHoldGesture)
150
151public:
153 : timerId(0)
154 {
155 }
156
159 static int Timeout;
160};
161
163
164#endif // QT_NO_GESTURES
165
166#endif // QGESTURE_P_H
\inmodule QtCore
QPointF hotSpot
Definition qgesture_p.h:42
Qt::GestureType gestureType
Definition qgesture_p.h:40
Qt::GestureState state
Definition qgesture_p.h:41
QPointF sceneHotSpot
Definition qgesture_p.h:43
uint gestureCancelPolicy
Definition qgesture_p.h:45
The QGesture class represents a gesture, containing properties that describe the corresponding user i...
Definition qgesture.h:29
qreal horizontalVelocity() const
Definition qgesture_p.h:58
void setHorizontalVelocity(qreal value)
Definition qgesture_p.h:59
void setVerticalVelocity(qreal value)
Definition qgesture_p.h:61
qreal verticalVelocity() const
Definition qgesture_p.h:60
The QPanGesture class describes a panning gesture made by the user.\inmodule QtWidgets.
Definition qgesture.h:73
QPinchGesture::ChangeFlags totalChangeFlags
Definition qgesture_p.h:84
QPointF startPosition[2]
Definition qgesture_p.h:100
QPinchGesture::ChangeFlags changeFlags
Definition qgesture_p.h:85
The QPinchGesture class describes a pinch gesture made by the user.\inmodule QtWidgets.
Definition qgesture.h:103
\inmodule QtCore\reentrant
Definition qpoint.h:214
\inmodule QtCore\reentrant
Definition qpoint.h:23
QElapsedTimer time
Definition qgesture_p.h:132
QSwipeGesture::SwipeDirection horizontalDirection
Definition qgesture_p.h:125
void setVelocity(qreal value)
Definition qgesture_p.h:123
QPoint lastPositions[3]
Definition qgesture_p.h:129
qreal velocity() const
Definition qgesture_p.h:122
QSwipeGesture::SwipeDirection verticalDirection
Definition qgesture_p.h:126
The QSwipeGesture class describes a swipe gesture made by the user.\inmodule QtWidgets.
Definition qgesture.h:177
SwipeDirection
This enum describes the possible directions for the gesture's motion along the horizontal and vertica...
Definition qgesture.h:187
The QTapAndHoldGesture class describes a tap-and-hold (aka LongTap) gesture made by the user....
Definition qgesture.h:222
The QTapGesture class describes a tap gesture made by the user.\inmodule QtWidgets.
Definition qgesture.h:204
Combined button and popup list for selecting options.
GestureState
GestureType
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
unsigned int uint
Definition qtypes.h:29
double qreal
Definition qtypes.h:92