Debian Codegraph @

wayland/qtwayland-dev/5.15.1/QtWaylandClient/private/qwaylandextendedsurface_p.h

raw symbols SCIP
1 // Copyright (C) 2018 The Qt Company Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5 #ifndef QWAYLANDEXTENDEDSURFACE_H
6 #define QWAYLANDEXTENDEDSURFACE_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 <QtCore/QString>
20 #include <QtCore/QVariant>
21
22 #include <QtWaylandClient/qtwaylandclientglobal.h>
23
24 #include <wayland-client.h>
25 #include <QtWaylandClient/private/qwayland-surface-extension.h>
26
27 QT_BEGIN_NAMESPACE
28
29 namespace QtWaylandClient {
30
31 class QWaylandDisplay;
32 class QWaylandWindow;
33
34 class Q_WAYLAND_CLIENT_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