1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QLOTTIEFLATLAYERS_P_H
5#define QLOTTIEFLATLAYERS_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 <QtLottie/private/qlottielayer_p.h>
19#include <QtGui/QColor>
20
21QT_BEGIN_NAMESPACE
22
23class QJsonObject;
24class QLottieRenderer;
25
26class Q_LOTTIE_EXPORT QLottieNullLayer : public QLottieLayer
27{
28public:
29 QLottieNullLayer() = default;
30 explicit QLottieNullLayer(const QLottieNullLayer &other);
31 QLottieNullLayer(const QJsonObject &definition);
32
33 QLottieBase *clone() const override;
34
35 void render(QLottieRenderer &render) const override;
36};
37
38class Q_LOTTIE_EXPORT QLottieSolidLayer : public QLottieLayer
39{
40public:
41 QLottieSolidLayer() = default;
42 explicit QLottieSolidLayer(const QLottieSolidLayer &other);
43 QLottieSolidLayer(const QJsonObject &definition);
44
45 QLottieBase *clone() const override;
46
47 void render(QLottieRenderer &render) const override;
48
49 QColor color() const;
50
51private:
52 QColor m_color;
53};
54
55class Q_LOTTIE_EXPORT QLottieImageLayer : public QLottieLayer
56{
57public:
58 QLottieImageLayer() = default;
59 explicit QLottieImageLayer(const QLottieImageLayer &other);
60 QLottieImageLayer(const QJsonObject &definition);
61
62 QLottieBase *clone() const override;
63
64 void render(QLottieRenderer &render) const override;
65};
66
67QT_END_NAMESPACE
68
69#endif // QLOTTIEFLATLAYERS_P_H
70

source code of qtlottie/src/lottie/qlottieflatlayers_p.h