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
qquickrectangleextruder_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 RECTANGLEEXTRUDER_H
5#define RECTANGLEEXTRUDER_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
19
21
22class Q_QUICKPARTICLES_EXPORT QQuickRectangleExtruder : public QQuickParticleExtruder
23{
25 Q_PROPERTY(bool fill READ fill WRITE setFill NOTIFY fillChanged)
26 QML_NAMED_ELEMENT(RectangleShape)
28
29public:
30 explicit QQuickRectangleExtruder(QObject *parent = nullptr);
31 QPointF extrude(const QRectF &) override;
32 bool contains(const QRectF &bounds, const QPointF &point) override;
33 bool fill() const
34 {
35 return m_fill;
36 }
37
39
40 void fillChanged(bool arg);
41
42public Q_SLOTS:
43
44 void setFill(bool arg)
45 {
46 if (m_fill != arg) {
47 m_fill = arg;
48 Q_EMIT fillChanged(arg);
49 }
50 }
51protected:
52 bool m_fill;
53};
54
56
57#endif // RectangleEXTRUDER_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)