1 | // Copyright (C) 2023 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QWAYLANDCOMPOSITORXDGSHELLFOREIGN_H |
5 | #define QWAYLANDCOMPOSITORXDGSHELLFOREIGN_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 purely as an |
12 | // implementation detail. 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/qqmlextensionplugin.h> |
19 | #include <QtQml/qqml.h> |
20 | |
21 | #include <QtWaylandCompositor/QWaylandQuickExtension> |
22 | #include <QtWaylandCompositor/QWaylandXdgShell> |
23 | #include <QtWaylandCompositor/QWaylandXdgDecorationManagerV1> |
24 | #include <QtWaylandCompositor/QWaylandQuickXdgOutputV1> |
25 | |
26 | QT_BEGIN_NAMESPACE |
27 | |
28 | Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(QWaylandXdgShell, XdgShell, 1, 3) |
29 | Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(QWaylandXdgDecorationManagerV1, |
30 | XdgDecorationManagerV1, 1, 3) |
31 | Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(QWaylandXdgOutputManagerV1, XdgOutputManagerV1, |
32 | 1, 14) |
33 | |
34 | struct QWaylandXdgSurfaceForeign { |
35 | Q_GADGET |
36 | QML_FOREIGN(QWaylandXdgSurface) |
37 | QML_NAMED_ELEMENT(XdgSurface) |
38 | QML_ADDED_IN_VERSION(1, 3) |
39 | }; |
40 | |
41 | struct QWaylandXdgTopLevelForeign { |
42 | Q_GADGET |
43 | QML_FOREIGN(QWaylandXdgToplevel) |
44 | QML_NAMED_ELEMENT(XdgToplevel) |
45 | QML_ADDED_IN_VERSION(1, 3) |
46 | QML_UNCREATABLE("Cannot create instance of XdgShellToplevel" ) |
47 | }; |
48 | |
49 | struct QWaylandXdgPopupForeign { |
50 | Q_GADGET |
51 | QML_FOREIGN(QWaylandXdgPopup) |
52 | QML_NAMED_ELEMENT(XdgPopup) |
53 | QML_ADDED_IN_VERSION(1, 3) |
54 | QML_UNCREATABLE("Cannot create instance of XdgShellPopup" ) |
55 | }; |
56 | |
57 | struct QWaylandQuickXdgOutputV1Foreign { |
58 | Q_GADGET |
59 | QML_FOREIGN(QWaylandQuickXdgOutputV1) |
60 | QML_NAMED_ELEMENT(XdgOutputV1) |
61 | QML_ADDED_IN_VERSION(1, 14) |
62 | }; |
63 | |
64 | QT_END_NAMESPACE |
65 | |
66 | #endif |
67 | |