1 | // Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB). |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | #ifndef QT3DRENDER_QLINEWIDTH_H |
4 | #define QT3DRENDER_QLINEWIDTH_H |
5 | |
6 | #include <Qt3DRender/qrenderstate.h> |
7 | |
8 | QT_BEGIN_NAMESPACE |
9 | |
10 | namespace Qt3DRender { |
11 | |
12 | class QLineWidthPrivate; |
13 | |
14 | class Q_3DRENDERSHARED_EXPORT QLineWidth : public QRenderState |
15 | { |
16 | Q_OBJECT |
17 | Q_PROPERTY(float value READ value WRITE setValue NOTIFY valueChanged) |
18 | Q_PROPERTY(bool smooth READ smooth WRITE setSmooth NOTIFY smoothChanged) |
19 | |
20 | public: |
21 | explicit QLineWidth(Qt3DCore::QNode *parent = nullptr); |
22 | ~QLineWidth(); |
23 | |
24 | float value() const; |
25 | bool smooth() const; |
26 | |
27 | public Q_SLOTS: |
28 | void setValue(float value); |
29 | void setSmooth(bool enabled); |
30 | |
31 | Q_SIGNALS: |
32 | void valueChanged(float value); |
33 | void smoothChanged(bool enabled); |
34 | |
35 | private: |
36 | Q_DECLARE_PRIVATE(QLineWidth) |
37 | }; |
38 | |
39 | } // namespace Qt3DRender |
40 | |
41 | QT_END_NAMESPACE |
42 | |
43 | #endif // QTRENDER_QLINEWIDTH_H |
44 | |