1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QLOTTIEROOT_P_H
5#define QLOTTIEROOT_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/qlottiebase_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class Q_LOTTIE_EXPORT QLottieRoot : public QLottieBase
23{
24public:
25 QLottieRoot() = default;
26 explicit QLottieRoot(const QLottieRoot &other);
27
28 QLottieBase *clone() const override;
29
30 int parseSource(const QByteArray &jsonSource, const QUrl &fileSource);
31
32 void setStructureDumping(bool enabled);
33
34 int startFrame() const {
35 return m_startFrame;
36 }
37
38 int endFrame() const {
39 return m_endFrame;
40 }
41
42 int frameRate() const {
43 return m_frameRate;
44 }
45
46private:
47 int m_frameRate = 30;
48 int m_startFrame = 0;
49 int m_endFrame = 0;
50};
51
52QT_END_NAMESPACE
53
54#endif // QLOTTIEROOT_P_H
55

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