Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickellipseextruder_p.h
Go to the documentation of this file.
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//
18
20
21class Q_QUICKPARTICLES_EXPORT QQuickEllipseExtruder : public QQuickParticleExtruder
22{
24 Q_PROPERTY(bool fill READ fill WRITE setFill NOTIFY fillChanged)//###Use base class? If it's still box
25 QML_NAMED_ELEMENT(EllipseShape)
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
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
55#endif // ELLIPSEEXTRUDER_H
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qpoint.h:217
void fillChanged(bool arg)
\inmodule QtCore\reentrant
Definition qrect.h:484
Combined button and popup list for selecting options.
static bool contains(const QJsonArray &haystack, unsigned needle)
Definition qopengl.cpp:116
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
SSL_CTX int void * arg
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_EMIT
#define Q_SLOTS
#define Q_SIGNALS
#define explicit
ba fill(true)