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
qquickitemgenerator_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 QQUICKITEMGENERATOR_P_H
5#define QQUICKITEMGENERATOR_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
20
21#include <QStack>
22
24
25class QQuickMatrix4x4;
26class QQuickAnimatedProperty;
27class QQmlContext;
28
29class Q_QUICKVECTORIMAGEGENERATOR_EXPORT QQuickItemGenerator : public QQuickQmlGenerator
30{
31public:
32 QQuickItemGenerator(const QString fileName,
33 QQuickVectorImageGenerator::GeneratorFlags flags,
34 QQuickItem *parentItem,
35 QQmlContext *ctx);
36 ~QQuickItemGenerator();
37
38 QQuickItem *parentItem() const
39 {
40 return m_parentItem;
41 }
42
43protected:
44 bool generateRootNode(const StructureNodeInfo &info) override;
45
46 QQuickItem *m_parentItem = nullptr;
47 QQmlContext *m_qmlContext = nullptr;
48};
49
50QT_END_NAMESPACE
51
52#endif // QQUICKITEMGENERATOR_P_H