Revision control
Copy as Markdown
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
// Qt-Security score:significant reason:default
#ifndef QLOTTIESHAPELAYER_P_H
#define QLOTTIESHAPELAYER_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include <QtLottie/private/qlottielayer_p.h>
QT_BEGIN_NAMESPACE
class QJsonObject;
class QLottieRenderer;
class QLottieShape;
class QLottieTrimPath;
class Q_LOTTIE_EXPORT QLottieShapeLayer : public QLottieLayer
{
public:
QLottieShapeLayer() = default;
explicit QLottieShapeLayer(const QLottieShapeLayer &other);
QLottieBase *clone() const override;
void updateProperties(int frame) override;
void render(QLottieRenderer &render) const override;
int parse(const QJsonObject &definition) override;
private:
QLottieTrimPath *m_appliedTrim = nullptr;
};
QT_END_NAMESPACE
#endif // QLOTTIESHAPELAYER_P_H