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 QQUICKRECTANGLE_P_P_H |
5 | #define QQUICKRECTANGLE_P_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 "qquickitem_p.h" |
19 | #include <QtCore/qmetaobject.h> |
20 | #include <private/qlazilyallocated_p.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | class QQuickGradient; |
25 | class QQuickRectangle; |
26 | class QQuickRectanglePrivate : public QQuickItemPrivate |
27 | { |
28 | Q_DECLARE_PUBLIC(QQuickRectangle) |
29 | |
30 | public: |
31 | QQuickRectanglePrivate() : |
32 | color(Qt::white), gradient(QJSValue::UndefinedValue), pen(0), radius(0) |
33 | { |
34 | } |
35 | |
36 | ~QQuickRectanglePrivate() |
37 | { |
38 | } |
39 | |
40 | QColor color; |
41 | QJSValue gradient; |
42 | QQuickPen *pen; |
43 | qreal radius; |
44 | |
45 | struct ExtraData { |
46 | ExtraData() |
47 | : topLeftRadius(-1.), |
48 | topRightRadius(-1.), |
49 | bottomLeftRadius(-1.), |
50 | bottomRightRadius(-1.) |
51 | { |
52 | } |
53 | |
54 | qreal topLeftRadius; |
55 | qreal topRightRadius; |
56 | qreal bottomLeftRadius; |
57 | qreal bottomRightRadius; |
58 | }; |
59 | QLazilyAllocated<ExtraData> extraRectangle; |
60 | |
61 | static int doUpdateSlotIdx; |
62 | |
63 | void maybeSetImplicitAntialiasing(); |
64 | }; |
65 | |
66 | QT_END_NAMESPACE |
67 | |
68 | #endif // QQUICKRECTANGLE_P_P_H |
69 |