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 QQUICKIMAGEBASE_P_P_H
5#define QQUICKIMAGEBASE_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 "qquickimplicitsizeitem_p_p.h"
19#include "qquickimagebase_p.h"
20
21#include <QtQuick/private/qquickpixmapcache_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QNetworkReply;
26class Q_QUICK_PRIVATE_EXPORT QQuickImageBasePrivate : public QQuickImplicitSizeItemPrivate
27{
28 Q_DECLARE_PUBLIC(QQuickImageBase)
29
30public:
31 QQuickImageBasePrivate()
32 : status(QQuickImageBase::Null),
33 progress(0.0),
34 devicePixelRatio(1.0),
35 currentFrame(0),
36 frameCount(0),
37 async(false),
38 cache(true),
39 mirrorHorizontally(false),
40 mirrorVertically(false),
41 oldAutoTransform(false)
42 {
43 }
44
45 virtual bool updateDevicePixelRatio(qreal targetDevicePixelRatio);
46
47 void setStatus(QQuickImageBase::Status value);
48 void setProgress(qreal value);
49
50 QQuickPixmap pix;
51 QQuickImageBase::Status status;
52 QUrl url;
53 qreal progress;
54 QSize sourcesize;
55 QSize oldSourceSize;
56 qreal devicePixelRatio;
57 QRectF sourceClipRect;
58 QQuickImageProviderOptions providerOptions;
59 QColorSpace colorSpace;
60 int currentFrame;
61 int frameCount;
62 bool async : 1;
63 bool cache : 1;
64 bool mirrorHorizontally: 1;
65 bool mirrorVertically : 1;
66 bool oldAutoTransform : 1;
67};
68
69QT_END_NAMESPACE
70
71#endif // QQUICKIMAGEBASE_P_P_H
72

source code of qtdeclarative/src/quick/items/qquickimagebase_p_p.h