| 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 { |
| 46 | () |
| 47 | : topLeftRadius(0), |
| 48 | topRightRadius(0), |
| 49 | bottomLeftRadius(0), |
| 50 | bottomRightRadius(0), |
| 51 | isTopLeftRadiusSet(false), |
| 52 | isTopRightRadiusSet(false), |
| 53 | isBottomLeftRadiusSet(false), |
| 54 | isBottomRightRadiusSet(false) |
| 55 | { |
| 56 | } |
| 57 | qreal ; |
| 58 | qreal ; |
| 59 | qreal ; |
| 60 | qreal ; |
| 61 | |
| 62 | unsigned : 1; |
| 63 | unsigned : 1; |
| 64 | unsigned : 1; |
| 65 | unsigned : 1; |
| 66 | }; |
| 67 | QLazilyAllocated<ExtraData> ; |
| 68 | |
| 69 | static int doUpdateSlotIdx; |
| 70 | |
| 71 | void maybeSetImplicitAntialiasing(); |
| 72 | }; |
| 73 | |
| 74 | QT_END_NAMESPACE |
| 75 | |
| 76 | #endif // QQUICKRECTANGLE_P_P_H |
| 77 | |