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
qmacgesturerecognizer_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 QMACSWIPEGESTURERECOGNIZER_MAC_P_H
5#define QMACSWIPEGESTURERECOGNIZER_MAC_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 "qtimer.h"
20#include "qpoint.h"
21#include "qgesturerecognizer.h"
22#include <QtCore/qpointer.h>
23
24#ifndef QT_NO_GESTURES
25
27
29{
30public:
32
33 QGesture *create(QObject *target) override;
34 QGestureRecognizer::Result recognize(QGesture *gesture, QObject *watched, QEvent *event) override;
35 void reset(QGesture *gesture) override;
36};
37
39{
40public:
42
43 QGesture *create(QObject *target) override;
44 QGestureRecognizer::Result recognize(QGesture *gesture, QObject *watched, QEvent *event) override;
45 void reset(QGesture *gesture) override;
46};
47
49{
50public:
52
53 QGesture *create(QObject *target) override;
54 QGestureRecognizer::Result recognize(QGesture *gesture, QObject *watched, QEvent *event) override;
55 void reset(QGesture *gesture) override;
56protected:
57 void timerEvent(QTimerEvent *ev) override;
58private:
59 QPointF _startPos;
60 QBasicTimer _panTimer;
61 bool _panCanceled;
62 QPointer<QObject> _target;
63};
64
66
67#endif // QT_NO_GESTURES
68
69#endif // QMACSWIPEGESTURERECOGNIZER_MAC_P_H
\inmodule QtCore
Definition qbasictimer.h:18
\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
QGestureRecognizer::Result recognize(QGesture *gesture, QObject *watched, QEvent *event) override
Handles the given event for the watched object, updating the state of the gesture object as required,...
void timerEvent(QTimerEvent *ev) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
QGestureRecognizer::Result recognize(QGesture *gesture, 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 *gesture, QObject *watched, QEvent *event) override
Handles the given event for the watched object, updating the state of the gesture object as required,...
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qpoint.h:217
\inmodule QtCore
Definition qcoreevent.h:366
Combined button and popup list for selecting options.
GLenum target
struct _cl_event * event
GLboolean reset
view create()