1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef BMSHAPELAYER_P_H
5#define BMSHAPELAYER_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 BMShapeLayer : public BMLayer
30{
31public:
32 BMShapeLayer() = default;
33 explicit BMShapeLayer(const BMShapeLayer &other);
34 BMShapeLayer(const QJsonObject &definition, const QVersionNumber &version);
35 ~BMShapeLayer() 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 // BMSHAPELAYER_P_H
52

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