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 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QJsonObject; |
23 | |
24 | class LottieRenderer; |
25 | class BMShape; |
26 | class BMTrimPath; |
27 | class BMBasicTransform; |
28 | |
29 | class BODYMOVIN_EXPORT BMImageLayer : public BMLayer |
30 | { |
31 | public: |
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 | |
42 | protected: |
43 | QList<int> m_maskProperties; |
44 | |
45 | private: |
46 | BMTrimPath *m_appliedTrim = nullptr; |
47 | }; |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | #endif // BMIMAGELAYER_P_H |
52 | |