1 | // Copyright (C) 2018 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 | |
4 | #ifndef QWAYLANDEXTENDEDSURFACE_H |
5 | #define QWAYLANDEXTENDEDSURFACE_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 <QtCore/QString> |
19 | #include <QtCore/QVariant> |
20 | #include <QtCore/QMap> // for QVariantMap |
21 | |
22 | #include <QtWaylandClient/qtwaylandclientglobal.h> |
23 | |
24 | #include <QtWaylandClient/private/qwayland-surface-extension.h> |
25 | #include <QtCore/private/qglobal_p.h> |
26 | |
27 | QT_BEGIN_NAMESPACE |
28 | |
29 | namespace QtWaylandClient { |
30 | |
31 | class QWaylandDisplay; |
32 | class QWaylandWindow; |
33 | |
34 | class Q_WAYLANDCLIENT_EXPORT QWaylandExtendedSurface : public QtWayland::qt_extended_surface |
35 | { |
36 | public: |
37 | QWaylandExtendedSurface(QWaylandWindow *window); |
38 | ~QWaylandExtendedSurface() override; |
39 | |
40 | void setContentOrientationMask(Qt::ScreenOrientations mask); |
41 | |
42 | void updateGenericProperty(const QString &name, const QVariant &value); |
43 | |
44 | Qt::WindowFlags setWindowFlags(Qt::WindowFlags flags); |
45 | |
46 | private: |
47 | void extended_surface_onscreen_visibility(int32_t visibility) override; |
48 | void extended_surface_set_generic_property(const QString &name, wl_array *value) override; |
49 | void extended_surface_close() override; |
50 | |
51 | QWaylandWindow *m_window = nullptr; |
52 | QVariantMap m_properties; |
53 | }; |
54 | |
55 | } |
56 | |
57 | QT_END_NAMESPACE |
58 | |
59 | #endif // QWAYLANDEXTENDEDSURFACE_H |
60 | |