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 QQUICKPATH_P_H
5#define QQUICKPATH_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 <private/qtquickglobal_p.h>
19
20QT_REQUIRE_CONFIG(quick_path);
21
22#include "qquickpath_p.h"
23
24#include <qqml.h>
25#include <QtCore/QStringList>
26
27#include <private/qobject_p.h>
28
29QT_BEGIN_NAMESPACE
30
31class Q_QUICK_PRIVATE_EXPORT QQuickPathPrivate : public QObjectPrivate
32{
33 Q_DECLARE_PUBLIC(QQuickPath)
34
35public:
36 static QQuickPathPrivate* get(QQuickPath *path) { return path->d_func(); }
37 static const QQuickPathPrivate* get(const QQuickPath *path) { return path->d_func(); }
38
39 QQuickPathPrivate() {}
40
41 QPainterPath _path;
42 QList<QQuickPathElement*> _pathElements;
43 mutable QVector<QPointF> _pointCache;
44 QList<QQuickPath::AttributePoint> _attributePoints;
45 QStringList _attributes;
46 QList<QQuickCurve*> _pathCurves;
47 QList<QQuickPathText*> _pathTexts;
48 mutable QQuickCachedBezier prevBez;
49 QQmlNullableValue<qreal> startX;
50 QQmlNullableValue<qreal> startY;
51 qreal pathLength = 0;
52 QSizeF scale = QSizeF(1, 1);
53 bool closed = false;
54 bool componentComplete = true;
55 bool isShapePath = false;
56 bool simplify = false;
57};
58
59QT_END_NAMESPACE
60
61#endif
62

source code of qtdeclarative/src/quick/util/qquickpath_p_p.h