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// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDCOMPOSITORXDGSHELLFOREIGN_H
6#define QWAYLANDCOMPOSITORXDGSHELLFOREIGN_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQml/qqmlextensionplugin.h>
20#include <QtQml/qqml.h>
21
22#include <QtWaylandCompositor/QWaylandQuickExtension>
23#include <QtWaylandCompositor/QWaylandXdgShell>
24#include <QtWaylandCompositor/QWaylandXdgDecorationManagerV1>
25#include <QtWaylandCompositor/QWaylandQuickXdgOutputV1>
26
27QT_BEGIN_NAMESPACE
28
29Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(QWaylandXdgShell, XdgShell, 1, 3)
30Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(QWaylandXdgDecorationManagerV1,
31 XdgDecorationManagerV1, 1, 3)
32Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(QWaylandXdgOutputManagerV1, XdgOutputManagerV1,
33 1, 14)
34
35struct QWaylandXdgSurfaceForeign {
36 Q_GADGET
37 QML_FOREIGN(QWaylandXdgSurface)
38 QML_NAMED_ELEMENT(XdgSurface)
39 QML_ADDED_IN_VERSION(1, 3)
40};
41
43 Q_GADGET
44 QML_FOREIGN(QWaylandXdgToplevel)
47 QML_UNCREATABLE("Cannot create instance of XdgShellToplevel")
48};
49
51 Q_GADGET
52 QML_FOREIGN(QWaylandXdgPopup)
55 QML_UNCREATABLE("Cannot create instance of XdgShellPopup")
56};
57
59 Q_GADGET
60 QML_FOREIGN(QWaylandQuickXdgOutputV1)
63};
64
65QT_END_NAMESPACE
66
67#endif
Combined button and popup list for selecting options.