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
qwaylandwlshellsurface_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDWLSHELLSURFACE_H
6#define QWAYLANDWLSHELLSURFACE_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
21#include <QtWaylandClient/qtwaylandclientglobal.h>
22#include <QtWaylandClient/private/qwayland-wayland.h>
23#include <QtWaylandClient/private/qwaylandshellsurface_p.h>
24
26
27class QWindow;
28
29namespace QtWaylandClient {
30
31class QWaylandWindow;
32class QWaylandInputDevice;
33class QWaylandExtendedSurface;
34
35class Q_WAYLANDCLIENT_EXPORT QWaylandWlShellSurface : public QWaylandShellSurface
37{
39public:
42
45
48
49 void setTitle(const QString & title) override;
50 void setAppId(const QString &appId) override;
51
53 bool wantsDecorations() const override;
54
55 std::any surfaceRole() const override { return object(); };
56
57protected:
59
60private:
62 void setTopLevel();
65
66 QWaylandWindow *m_window = nullptr;
67 struct {
73 // There's really no need to have pending and applied state on wl-shell, but we do it just to
74 // keep the different shell implementations more similar.
76
82
83 friend class QWaylandWindow;
84};
85
86} // namespace QtWaylandClient
87
88QT_END_NAMESPACE
89
90#endif // QWAYLANDSHELLSURFACE_H
Combined button and popup list for selecting options.