1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QLOTTIEROUND_P_H
5#define QLOTTIEROUND_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 <QRect>
19#include <QPointF>
20#include <QBrush>
21#include <QPen>
22
23#include <QtLottie/private/qlottieshape_p.h>
24#include <QtLottie/private/qlottieproperty_p.h>
25#include <QtLottie/private/qlottiespatialproperty_p.h>
26#include <QtLottie/private/qlottiefill_p.h>
27#include <QtLottie/private/qlottiestroke_p.h>
28
29QT_BEGIN_NAMESPACE
30
31class QJsonObject;
32
33class Q_LOTTIE_EXPORT QLottieRound : public QLottieShape
34{
35public:
36 QLottieRound() = default;
37 explicit QLottieRound(const QLottieRound &other);
38 QLottieRound(const QJsonObject &definition, QLottieBase *parent = nullptr);
39
40 QLottieBase *clone() const override;
41
42 void construct(const QJsonObject &definition);
43
44 void updateProperties(int frame) override;
45 void render(QLottieRenderer &renderer) const override;
46 bool acceptsTrim() const override;
47
48 QPointF position() const;
49 qreal radius() const;
50
51protected:
52 QLottieSpatialProperty m_position;
53 QLottieProperty<qreal> m_radius;
54};
55
56QT_END_NAMESPACE
57
58#endif // QLOTTIEROUND_P_H
59

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