Debian Codegraph @

wayland/qtwayland-dev/5.11.3/QtWaylandClient/private/qwaylandshellsurface_p.h

raw symbols SCIP
1 // Copyright (C) 2021 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 QWAYLANDSHELLSURFACE_H
6 #define QWAYLANDSHELLSURFACE_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/QSize>
20 #include <QObject>
21
22 #include <wayland-client.h>
23
24 #include <QtWaylandClient/private/qwayland-wayland.h>
25 #include <QtWaylandClient/qtwaylandclientglobal.h>
26
27 QT_BEGIN_NAMESPACE
28
29 class QVariant;
30 class QWindow;
31
32 namespace QtWaylandClient {
33
34 class QWaylandWindow;
35 class QWaylandInputDevice;
36
37 class Q_WAYLAND_CLIENT_EXPORT QWaylandShellSurface : public QObject
38 {
39 Q_OBJECT
40 public:
41 explicit QWaylandShellSurface(QWaylandWindow *window);
42 ~QWaylandShellSurface() override {}
43 virtual void resize(QWaylandInputDevice * /*inputDevice*/, enum wl_shell_surface_resize /*edges*/)
44 {}
45
46 virtual bool move(QWaylandInputDevice *) { return false; }
47 virtual void setTitle(const QString & /*title*/) {}
48 virtual void setAppId(const QString & /*appId*/) {}
49
50 virtual void setWindowFlags(Qt::WindowFlags flags);
51
52 virtual bool isExposed() const { return true; }
53 virtual bool handleExpose(const QRegion &) { return false; }
54
55 virtual void raise() {}
56 virtual void lower() {}
57 virtual void setContentOrientationMask(Qt::ScreenOrientations orientation) { Q_UNUSED(orientation) }
58
59 virtual void sendProperty(const QString &name, const QVariant &value);
60
61 inline QWaylandWindow *window() { return m_window; }
62
63 virtual void applyConfigure() {}
64 virtual void requestWindowStates(Qt::WindowStates states) {Q_UNUSED(states);}
65 virtual bool wantsDecorations() const { return false; }
66
67 private:
68 QWaylandWindow *m_window = nullptr;
69 friend class QWaylandWindow;
70 };
71
72 }
73
74 QT_END_NAMESPACE
75
76 #endif // QWAYLANDSHELLSURFACE_H