1 | // Copyright (C) 2018 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef BMROUND_P_H |
5 | #define BMROUND_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 <QtBodymovin/private/bmshape_p.h> |
24 | #include <QtBodymovin/private/bmproperty_p.h> |
25 | #include <QtBodymovin/private/bmspatialproperty_p.h> |
26 | #include <QtBodymovin/private/bmfill_p.h> |
27 | #include <QtBodymovin/private/bmstroke_p.h> |
28 | |
29 | QT_BEGIN_NAMESPACE |
30 | |
31 | class QJsonObject; |
32 | |
33 | class BODYMOVIN_EXPORT BMRound : public BMShape |
34 | { |
35 | public: |
36 | BMRound() = default; |
37 | explicit BMRound(const BMRound &other); |
38 | BMRound(const QJsonObject &definition, const QVersionNumber &version, BMBase *parent = nullptr); |
39 | |
40 | BMBase *clone() const override; |
41 | |
42 | void construct(const QJsonObject &definition, const QVersionNumber &version); |
43 | |
44 | void updateProperties(int frame) override; |
45 | void render(LottieRenderer &renderer) const override; |
46 | bool acceptsTrim() const override; |
47 | |
48 | QPointF position() const; |
49 | qreal radius() const; |
50 | |
51 | protected: |
52 | BMSpatialProperty m_position; |
53 | BMProperty<qreal> m_radius; |
54 | }; |
55 | |
56 | QT_END_NAMESPACE |
57 | |
58 | #endif // BMROUND_P_H |
59 | |