1 | // Copyright (C) 2014 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 | |
4 | #ifndef QT3DRENDER_QLAYER_H |
5 | #define QT3DRENDER_QLAYER_H |
6 | |
7 | #include <Qt3DCore/qcomponent.h> |
8 | #include <Qt3DRender/qt3drender_global.h> |
9 | #include <QtCore/QStringList> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DRender { |
14 | |
15 | class QLayerPrivate; |
16 | |
17 | class Q_3DRENDERSHARED_EXPORT QLayer : public Qt3DCore::QComponent |
18 | { |
19 | Q_OBJECT |
20 | Q_PROPERTY(bool recursive READ recursive WRITE setRecursive NOTIFY recursiveChanged) |
21 | public: |
22 | explicit QLayer(Qt3DCore::QNode *parent = nullptr); |
23 | ~QLayer(); |
24 | |
25 | bool recursive() const; |
26 | void setRecursive(bool recursive); |
27 | |
28 | Q_SIGNALS: |
29 | void recursiveChanged(); |
30 | |
31 | protected: |
32 | explicit QLayer(QLayerPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
33 | |
34 | private: |
35 | Q_DECLARE_PRIVATE(QLayer) |
36 | }; |
37 | |
38 | } // namespace Qt3DRender |
39 | |
40 | QT_END_NAMESPACE |
41 | |
42 | #endif // QT3DRENDER_QLAYER_H |
43 | |