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
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
4#ifndef QSTANDARDGESTURES_P_H
5#define QSTANDARDGESTURES_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 "qgesturerecognizer.h"
20#include "private/qgesture_p.h"
21
22#ifndef QT_NO_GESTURES
23
25
27{
28public:
29 explicit QPanGestureRecognizer(int pointCount = 2) : m_pointCount(pointCount) {}
30
31 QGesture *create(QObject *target) override;
32 QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override;
33 void reset(QGesture *state) override;
34
35private:
36 const int m_pointCount;
37};
38
40{
41public:
43
44 QGesture *create(QObject *target) override;
45 QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override;
46 void reset(QGesture *state) override;
47};
48
50{
51public:
53
54 QGesture *create(QObject *target) override;
55 QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override;
56 void reset(QGesture *state) override;
57};
58
60{
61public:
63
64 QGesture *create(QObject *target) override;
65 QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override;
66 void reset(QGesture *state) override;
67};
68
70{
71public:
73
74 QGesture *create(QObject *target) override;
75 QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override;
76 void reset(QGesture *state) override;
77};
78
80
81#endif // QT_NO_GESTURES
82
83#endif // QSTANDARDGESTURES_P_H
\inmodule QtCore
Definition qcoreevent.h:45
The QGestureRecognizer class provides the infrastructure for gesture recognition.\inmodule QtWidgets.
The QGesture class represents a gesture, containing properties that describe the corresponding user i...
Definition qgesture.h:29
\inmodule QtCore
Definition qobject.h:103
QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override
Handles the given event for the watched object, updating the state of the gesture object as required,...
QPanGestureRecognizer(int pointCount=2)
QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override
Handles the given event for the watched object, updating the state of the gesture object as required,...
QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override
Handles the given event for the watched object, updating the state of the gesture object as required,...
QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override
Handles the given event for the watched object, updating the state of the gesture object as required,...
QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override
Handles the given event for the watched object, updating the state of the gesture object as required,...
else opt state
[0]
Combined button and popup list for selecting options.
GLenum target
struct _cl_event * event
GLboolean reset
view create()