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
qquickpointhandler_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QQUICKPONTHANDLER_H
5#define QQUICKPONTHANDLER_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 purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
21
22class Q_QUICK_EXPORT QQuickPointHandler : public QQuickSinglePointHandler
23{
25 Q_PROPERTY(QVector2D translation READ translation NOTIFY translationChanged)
26 QML_NAMED_ELEMENT(PointHandler)
28
29public:
30 explicit QQuickPointHandler(QQuickItem *parent = nullptr);
31
32 QVector2D translation() const;
33
35 void translationChanged();
36
37protected:
38 bool wantsEventPoint(const QPointerEvent *event, const QEventPoint &point) override;
39 void handleEventPoint(QPointerEvent *event, QEventPoint &point) override;
40};
41
43
44#endif // QQUICKPONTHANDLER_H
The QEventPoint class provides information about a point in a QPointerEvent.
Definition qeventpoint.h:20
A base class for pointer events.
Definition qevent.h:73
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
The QVector2D class represents a vector or vertex in 2D space.
Definition qvectornd.h:31
Combined button and popup list for selecting options.
struct _cl_event * event
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
#define explicit