1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QLOTTIEGROUP_P_H
5#define QLOTTIEGROUP_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 <QJsonObject>
19#include <QColor>
20
21#include <QtLottie/private/qlottieshape_p.h>
22#include <QtLottie/private/qlottieproperty_p.h>
23
24QT_BEGIN_NAMESPACE
25
26class QLottieFill;
27class QLottieTrimPath;
28
29class Q_LOTTIE_EXPORT QLottieGroup : public QLottieShape
30{
31public:
32 QLottieGroup() = default;
33 QLottieGroup(const QJsonObject &definition, QLottieBase *parent = nullptr);
34
35 QLottieBase *clone() const override;
36
37 void construct(const QJsonObject &definition);
38
39 void updateProperties(int frame) override;
40 void render(QLottieRenderer &renderer) const override;
41
42 bool acceptsTrim() const override;
43 void applyTrim(const QLottieTrimPath &trimmer) override;
44};
45
46QT_END_NAMESPACE
47
48#endif // QLOTTIEGROUP_P_H
49

source code of qtlottie/src/lottie/qlottiegroup_p.h