| 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 QQUICKPAINTEDITEM_P_P_H |
| 5 | #define QQUICKPAINTEDITEM_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 "qquickpainteditem.h" |
| 19 | #include "qquickitem_p.h" |
| 20 | #include "qquickpainteditem.h" |
| 21 | #include <QtGui/qcolor.h> |
| 22 | |
| 23 | QT_BEGIN_NAMESPACE |
| 24 | |
| 25 | class QQuickPaintedItemTextureProvider; |
| 26 | class QSGPainterNode; |
| 27 | |
| 28 | class Q_QUICK_EXPORT QQuickPaintedItemPrivate : public QQuickItemPrivate |
| 29 | { |
| 30 | public: |
| 31 | QQuickPaintedItemPrivate(); |
| 32 | |
| 33 | QSize contentsSize; |
| 34 | qreal contentsScale; |
| 35 | QColor fillColor; |
| 36 | QQuickPaintedItem::RenderTarget renderTarget; |
| 37 | QQuickPaintedItem::PerformanceHints performanceHints; |
| 38 | QSize textureSize; |
| 39 | |
| 40 | QRect dirtyRect; |
| 41 | |
| 42 | bool opaquePainting: 1; |
| 43 | bool mipmap: 1; |
| 44 | |
| 45 | mutable QQuickPaintedItemTextureProvider *textureProvider; |
| 46 | QSGPainterNode *node; |
| 47 | }; |
| 48 | |
| 49 | QT_END_NAMESPACE |
| 50 | |
| 51 | #endif // QQUICKPAINTEDITEM_P_P_H |
| 52 |
