1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef BMGROUP_P_H
5#define BMGROUP_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 <QtBodymovin/private/bmshape_p.h>
22#include <QtBodymovin/private/bmproperty_p.h>
23#include <QtBodymovin/private/bmpathtrimmer_p.h>
24
25QT_BEGIN_NAMESPACE
26
27class BMFill;
28class BMTrimPath;
29class BMPathTrimmer;
30
31class BODYMOVIN_EXPORT BMGroup : public BMShape
32{
33public:
34 BMGroup() = default;
35 BMGroup(const QJsonObject &definition, const QVersionNumber &version, BMBase *parent = nullptr);
36
37 BMBase *clone() const override;
38
39 void construct(const QJsonObject &definition, const QVersionNumber &version);
40
41 void updateProperties(int frame) override;
42 void render(LottieRenderer &renderer) const override;
43
44 bool acceptsTrim() const override;
45 void applyTrim(const BMTrimPath &trimmer) override;
46};
47
48QT_END_NAMESPACE
49
50#endif // BMGROUP_P_H
51

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