Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
>
20
#
include
"qgesturerecognizer.h"
21
#
include
"private/qgesture_p.h"
22
23
#
ifndef
QT_NO_GESTURES
24
25
QT_BEGIN_NAMESPACE
26
27
class
QPanGestureRecognizer :
public
QGestureRecognizer
28
{
29
public
:
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
36
private
:
37
const
int
m_pointCount;
38
};
39
40
class
QPinchGestureRecognizer
:
public
QGestureRecognizer
41
{
42
public
:
43
QPinchGestureRecognizer
();
44
45
QGesture *
create
(QObject *target)
override
;
46
QGestureRecognizer
::
Result
recognize
(
QGesture
*
state
,
QObject
*
watched
,
QEvent
*
event
)
override
;
47
void
reset
(QGesture *state)
override
;
48
};
49
50
class
QSwipeGestureRecognizer
:
public
QGestureRecognizer
51
{
52
public
:
53
QSwipeGestureRecognizer
();
54
55
QGesture *
create
(QObject *target)
override
;
56
QGestureRecognizer
::
Result
recognize
(
QGesture
*
state
,
QObject
*
watched
,
QEvent
*
event
)
override
;
57
void
reset
(QGesture *state)
override
;
58
};
59
60
class
QTapGestureRecognizer
:
public
QGestureRecognizer
61
{
62
public
:
63
QTapGestureRecognizer
();
64
65
QGesture *
create
(QObject *target)
override
;
66
QGestureRecognizer
::
Result
recognize
(
QGesture
*
state
,
QObject
*
watched
,
QEvent
*
event
)
override
;
67
void
reset
(QGesture *state)
override
;
68
};
69
70
class
QTapAndHoldGestureRecognizer
:
public
QGestureRecognizer
71
{
72
public
:
73
QTapAndHoldGestureRecognizer
();
74
75
QGesture *
create
(QObject *target)
override
;
76
QGestureRecognizer
::
Result
recognize
(
QGesture
*
state
,
QObject
*
watched
,
QEvent
*
event
)
override
;
77
void
reset
(QGesture *state)
override
;
78
};
79
80
QT_END_NAMESPACE
81
82
#
endif
// QT_NO_GESTURES
83
84
#
endif
// QSTANDARDGESTURES_P_H
QPinchGesturePrivate
Definition
qgesture_p.h:75
QPinchGesturePrivate::isNewSequence
bool isNewSequence
Definition
qgesture_p.h:101
QPinchGestureRecognizer
Definition
qstandardgestures_p.h:41
QPinchGestureRecognizer::create
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
Definition
qstandardgestures.cpp:121
QPinchGestureRecognizer::QPinchGestureRecognizer
QPinchGestureRecognizer()
Definition
qstandardgestures.cpp:117
QPinchGestureRecognizer::reset
void reset(QGesture *state) override
This function is called by Qt to reset a given gesture.
Definition
qstandardgestures.cpp:221
QPointF
\inmodule QtCore\reentrant
Definition
qpoint.h:232
QPointF::QPointF
constexpr QPointF() noexcept
Constructs a null point, i.e.
Definition
qpoint.h:339
QSwipeGesturePrivate
Definition
qgesture_p.h:106
QSwipeGestureRecognizer
Definition
qstandardgestures_p.h:51
QSwipeGestureRecognizer::create
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
Definition
qstandardgestures.cpp:246
QSwipeGestureRecognizer::reset
void reset(QGesture *state) override
This function is called by Qt to reset a given gesture.
Definition
qstandardgestures.cpp:370
QSwipeGestureRecognizer::QSwipeGestureRecognizer
QSwipeGestureRecognizer()
Definition
qstandardgestures.cpp:242
QTapAndHoldGesturePrivate
Definition
qgesture_p.h:150
QTapAndHoldGestureRecognizer
Definition
qstandardgestures_p.h:71
QTapAndHoldGestureRecognizer::QTapAndHoldGestureRecognizer
QTapAndHoldGestureRecognizer()
Definition
qstandardgestures.cpp:461
QTapAndHoldGestureRecognizer::reset
void reset(QGesture *state) override
This function is called by Qt to reset a given gesture.
Definition
qstandardgestures.cpp:548
QTapAndHoldGestureRecognizer::create
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
Definition
qstandardgestures.cpp:465
QTapGesturePrivate
Definition
qgesture_p.h:138
QTapGestureRecognizer
Definition
qstandardgestures_p.h:61
QTapGestureRecognizer::reset
void reset(QGesture *state) override
This function is called by Qt to reset a given gesture.
Definition
qstandardgestures.cpp:447
QTapGestureRecognizer::QTapGestureRecognizer
QTapGestureRecognizer()
Definition
qstandardgestures.cpp:390
QTapGestureRecognizer::create
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
Definition
qstandardgestures.cpp:394
panOffset
static QPointF panOffset(const QList< QEventPoint > &touchPoints, int maxCount)
Definition
qstandardgestures.cpp:43
kSingleStepScaleMin
static const qreal kSingleStepScaleMin
Definition
qstandardgestures.cpp:27
qtbase
src
widgets
kernel
qstandardgestures_p.h
Generated on
for Qt by
1.18.0