Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
47
71
102
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:217
\inmodule QtCore\reentrant
Definition qpoint.h:25
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.
Definition qcompare.h:63
GestureState
GestureType
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
unsigned int uint
Definition qtypes.h:34
double qreal
Definition qtypes.h:187