Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickvectorimage_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 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 QQUICKVECTORIMAGE_P_P_H
5#define QQUICKVECTORIMAGE_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>
19#include <QSvgRenderer>
20#include <private/qquickitem_p.h>
21#include <QtQuickVectorImageGenerator/private/qquickvectorimagesource_p.h>
23
25
26class QQuickVectorImageIncubator;
27
28class Q_QUICKVECTORIMAGE_EXPORT QQuickVectorImagePrivate : public QQuickItemPrivate
29{
30 Q_DECLARE_PUBLIC(QQuickVectorImage)
31public:
32 QQuickVectorImagePrivate() = default;
33
34 void setSource(const QUrl &source);
35 void setSourceData(const QByteArray &data);
36 void loadFile();
37
38 static QQuickVectorImagePrivate *get(QQuickVectorImage *q)
39 {
40 return q->d_func();
41 }
42
43 QQuickVectorImageSource imageSource;
44 QQuickItem *rootItem = nullptr;
45 QQuickVectorImage::FillMode fillMode = QQuickVectorImage::Stretch;
46 QQuickVectorImage::RendererType preferredRendererType = QQuickVectorImage::GeometryRenderer;
47 bool assumeTrustedSource = false;
48 bool m_asyncShapes = false;
49 bool asynchronous = false;
50 bool retainWhileLoading = false;
51 std::unique_ptr<QQmlContext> context;
52 QQuickVectorImageAnimations *animations = nullptr;
53 QQuickVectorImageIncubator *incubator = nullptr;
54 QQuickItem *pendingRootItem = nullptr;
55};
56
57QT_END_NAMESPACE
58
59#endif // QQUICKVECTORIMAGE_P_P_H
Combined button and popup list for selecting options.
#define QQuickVectorImageFormatsPluginFactory_iid