Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandcompositorxdgshell_p.h
Go to the documentation of this file.
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
42 Q_GADGET
43 QML_FOREIGN(QWaylandXdgToplevel)
46 QML_UNCREATABLE("Cannot create instance of XdgShellToplevel")
47};
48
50 Q_GADGET
51 QML_FOREIGN(QWaylandXdgPopup)
54 QML_UNCREATABLE("Cannot create instance of XdgShellPopup")
55};
56
58 Q_GADGET
59 QML_FOREIGN(QWaylandQuickXdgOutputV1)
62};
63
64QT_END_NAMESPACE
65
66#endif