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
8QT_BEGIN_NAMESPACE
9
10namespace Qt3DRender {
11
12class QLineWidthPrivate;
13
14class 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
20public:
21 explicit QLineWidth(Qt3DCore::QNode *parent = nullptr);
22 ~QLineWidth();
23
24 float value() const;
25 bool smooth() const;
26
27public Q_SLOTS:
28 void setValue(float value);
29 void setSmooth(bool enabled);
30
31Q_SIGNALS:
32 void valueChanged(float value);
33 void smoothChanged(bool enabled);
34
35private:
36 Q_DECLARE_PRIVATE(QLineWidth)
37};
38
39} // namespace Qt3DRender
40
41QT_END_NAMESPACE
42
43#endif // QTRENDER_QLINEWIDTH_H
44

source code of qt3d/src/render/renderstates/qlinewidth.h