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
26QT_BEGIN_NAMESPACE
27
28Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(QWaylandXdgShell, XdgShell, 1, 3)
29Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(QWaylandXdgDecorationManagerV1,
30 XdgDecorationManagerV1, 1, 3)
31Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(QWaylandXdgOutputManagerV1, XdgOutputManagerV1,
32 1, 14)
33
34struct QWaylandXdgSurfaceForeign {
35 Q_GADGET
36 QML_FOREIGN(QWaylandXdgSurface)
37 QML_NAMED_ELEMENT(XdgSurface)
38 QML_ADDED_IN_VERSION(1, 3)
39};
40
41struct 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
49struct 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
57struct QWaylandQuickXdgOutputV1Foreign {
58 Q_GADGET
59 QML_FOREIGN(QWaylandQuickXdgOutputV1)
60 QML_NAMED_ELEMENT(XdgOutputV1)
61 QML_ADDED_IN_VERSION(1, 14)
62};
63
64QT_END_NAMESPACE
65
66#endif
67

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qtwayland/src/imports/compositor-extensions/xdgshell/qwaylandcompositorxdgshell_p.h