1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef BMIMAGELAYER_P_H
5#define BMIMAGELAYER_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 <QtBodymovin/private/bmlayer_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class QJsonObject;
23
24class LottieRenderer;
25class BMShape;
26class BMTrimPath;
27class BMBasicTransform;
28
29class BODYMOVIN_EXPORT BMImageLayer : public BMLayer
30{
31public:
32 BMImageLayer() = default;
33 explicit BMImageLayer(const BMImageLayer &other);
34 BMImageLayer(const QJsonObject &definition, const QVersionNumber &version);
35 ~BMImageLayer() override;
36
37 BMBase *clone() const override;
38
39 void updateProperties(int frame) override;
40 void render(LottieRenderer &render) const override;
41
42protected:
43 QList<int> m_maskProperties;
44
45private:
46 BMTrimPath *m_appliedTrim = nullptr;
47};
48
49QT_END_NAMESPACE
50
51#endif // BMIMAGELAYER_P_H
52

source code of qtlottie/src/bodymovin/bmimagelayer_p.h