1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef ELLIPSEEXTRUDER_H
5#define ELLIPSEEXTRUDER_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#include "qquickparticleextruder_p.h"
18
19QT_BEGIN_NAMESPACE
20
21class Q_QUICKPARTICLES_PRIVATE_EXPORT QQuickEllipseExtruder : public QQuickParticleExtruder
22{
23 Q_OBJECT
24 Q_PROPERTY(bool fill READ fill WRITE setFill NOTIFY fillChanged FINAL)//###Use base class? If it's still box
25 QML_NAMED_ELEMENT(EllipseShape)
26 QML_ADDED_IN_VERSION(2, 0)
27public:
28 explicit QQuickEllipseExtruder(QObject *parent = nullptr);
29 QPointF extrude(const QRectF &) override;
30 bool contains(const QRectF &bounds, const QPointF &point) override;
31
32 bool fill() const
33 {
34 return m_fill;
35 }
36
37Q_SIGNALS:
38
39 void fillChanged(bool arg);
40
41public Q_SLOTS:
42
43 void setFill(bool arg)
44 {
45 if (m_fill != arg) {
46 m_fill = arg;
47 Q_EMIT fillChanged(arg);
48 }
49 }
50private:
51 bool m_fill;
52};
53
54QT_END_NAMESPACE
55#endif // ELLIPSEEXTRUDER_H
56

source code of qtdeclarative/src/particles/qquickellipseextruder_p.h