| 1 | // Copyright (C) 2019 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 QQUICKPOINTERMULTIHANDLER_P_H |
| 5 | #define QQUICKPOINTERMULTIHANDLER_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 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 | |
| 18 | #include "qquickhandlerpoint_p.h" |
| 19 | #include "qquickpointerdevicehandler_p_p.h" |
| 20 | #include "qquickmultipointhandler_p.h" |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | class Q_QUICK_EXPORT QQuickMultiPointHandlerPrivate : public QQuickPointerDeviceHandlerPrivate |
| 25 | { |
| 26 | Q_DECLARE_PUBLIC(QQuickMultiPointHandler) |
| 27 | |
| 28 | public: |
| 29 | static QQuickMultiPointHandlerPrivate* get(QQuickMultiPointHandler *q) { return q->d_func(); } |
| 30 | static const QQuickMultiPointHandlerPrivate* get(const QQuickMultiPointHandler *q) { return q->d_func(); } |
| 31 | |
| 32 | QQuickMultiPointHandlerPrivate(int minPointCount, int maxPointCount); |
| 33 | |
| 34 | QMetaProperty &xMetaProperty() const; |
| 35 | QMetaProperty &yMetaProperty() const; |
| 36 | |
| 37 | QVector<QQuickHandlerPoint> currentPoints; |
| 38 | QQuickHandlerPoint centroid; |
| 39 | int minimumPointCount; |
| 40 | int maximumPointCount; |
| 41 | mutable QMetaProperty xProperty; |
| 42 | mutable QMetaProperty yProperty; |
| 43 | }; |
| 44 | |
| 45 | QT_END_NAMESPACE |
| 46 | |
| 47 | #endif // QQUICKPOINTERMULTIHANDLER_P_H |
| 48 |
