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

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