| 1 | // Copyright (C) 2018 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QLOTTIESHAPELAYER_P_H |
| 5 | #define QLOTTIESHAPELAYER_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 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class QJsonObject; |
| 23 | |
| 24 | class QLottieRenderer; |
| 25 | class QLottieShape; |
| 26 | class QLottieTrimPath; |
| 27 | |
| 28 | class Q_LOTTIE_EXPORT QLottieShapeLayer : public QLottieLayer |
| 29 | { |
| 30 | public: |
| 31 | QLottieShapeLayer() = default; |
| 32 | explicit QLottieShapeLayer(const QLottieShapeLayer &other); |
| 33 | QLottieShapeLayer(const QJsonObject &definition); |
| 34 | |
| 35 | QLottieBase *clone() const override; |
| 36 | |
| 37 | void updateProperties(int frame) override; |
| 38 | void render(QLottieRenderer &render) const override; |
| 39 | |
| 40 | private: |
| 41 | QLottieTrimPath *m_appliedTrim = nullptr; |
| 42 | }; |
| 43 | |
| 44 | QT_END_NAMESPACE |
| 45 | |
| 46 | #endif // QLOTTIESHAPELAYER_P_H |
| 47 | |