1 | // Copyright (C) 2021 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 | #ifndef QT3DRENDER_QUICK3DRENDER_SCENE2DEVENT_P_H |
4 | #define QT3DRENDER_QUICK3DRENDER_SCENE2DEVENT_P_H |
5 | |
6 | // |
7 | // W A R N I N G |
8 | // ------------- |
9 | // |
10 | // This file is not part of the Qt API. It exists for the convenience |
11 | // of other Qt classes. This header file may change from version to |
12 | // version without notice, or even be removed. |
13 | // |
14 | // We mean it. |
15 | // |
16 | |
17 | #include <Qt3DQuickScene2D/qt3dquickscene2d_global.h> |
18 | #include <private/qglobal_p.h> |
19 | |
20 | #include <QtCore/QEvent> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | namespace Qt3DRender { |
25 | |
26 | namespace Quick { |
27 | |
28 | class Scene2DEvent : public QEvent |
29 | { |
30 | public: |
31 | enum Type { |
32 | Initialize = QEvent::User + 1, |
33 | Render, |
34 | RenderSync, |
35 | Prepare, |
36 | Initialized, |
37 | Rendered, |
38 | Quit |
39 | }; |
40 | Scene2DEvent(Type type) |
41 | : QEvent(static_cast<QEvent::Type>(type)) |
42 | { |
43 | } |
44 | }; |
45 | |
46 | } // namespace Quick |
47 | } // namespace Qt3DRender |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | #endif // QT3DRENDER_QUICK3DRENDER_SCENE2DEVENT_P_H |
52 | |