Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquicklineextruder_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 LINEEXTRUDER_H
5#define LINEEXTRUDER_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 QQuickLineExtruder : public QQuickParticleExtruder
22{
23 Q_OBJECT
24 //Default is topleft to bottom right. Flipped makes it topright to bottom left
25 Q_PROPERTY(bool mirrored READ mirrored WRITE setMirrored NOTIFY mirroredChanged)
26 QML_NAMED_ELEMENT(LineShape)
27 QML_ADDED_IN_VERSION(2, 0)
28
29public:
30 explicit QQuickLineExtruder(QObject *parent = nullptr);
31 QPointF extrude(const QRectF &) override;
32 bool mirrored() const
33 {
34 return m_mirrored;
35 }
36
37Q_SIGNALS:
38
39 void mirroredChanged(bool arg);
40
41public Q_SLOTS:
42
43 void setMirrored(bool arg)
44 {
45 if (m_mirrored != arg) {
46 m_mirrored = arg;
47 Q_EMIT mirroredChanged(arg);
48 }
49 }
50private:
51 bool m_mirrored;
52};
53
54QT_END_NAMESPACE
55
56#endif // LINEEXTRUDER_H