1 | // Copyright (C) 2017 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 QT3DSCENE2D_QUICK_QUICK3DSCENE2D_P_H |
5 | #define QT3DSCENE2D_QUICK_QUICK3DSCENE2D_P_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 for the convenience |
12 | // of other Qt classes. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtQml/qqmllist.h> |
19 | |
20 | #include <Qt3DQuickScene2D/qscene2d.h> |
21 | |
22 | #include <private/qt3dquickscene2d_global_p.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | namespace Qt3DRender { |
27 | namespace Render { |
28 | namespace Quick { |
29 | |
30 | class Q_3DQUICKSCENE2DSHARED_EXPORT QQuick3DScene2D : public QObject |
31 | { |
32 | Q_OBJECT |
33 | Q_PROPERTY(QQmlListProperty<Qt3DCore::QEntity> entities READ entities) |
34 | |
35 | public: |
36 | QQuick3DScene2D(QObject *parent = nullptr); |
37 | |
38 | inline Qt3DRender::Quick::QScene2D *parentScene2D() const |
39 | { |
40 | return qobject_cast<Qt3DRender::Quick::QScene2D *>(object: parent()); |
41 | } |
42 | |
43 | QQmlListProperty<Qt3DCore::QEntity> entities(); |
44 | }; |
45 | |
46 | } // namespace Quick |
47 | } // namespace Render |
48 | } // namespace Qt3DRender |
49 | |
50 | QT_END_NAMESPACE |
51 | |
52 | #endif // QT3DANIMATION_QUICK_QUICK3DMORPHINGANIMATION_P_H |
53 | |
54 | |