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
4#ifndef QWAYLANDWLSHELLSURFACE_H
5#define QWAYLANDWLSHELLSURFACE_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/QSize>
19
20#include <QtWaylandClient/qtwaylandclientglobal.h>
21#include <QtWaylandClient/private/qwayland-wayland.h>
22#include <QtWaylandClient/private/qwaylandshellsurface_p.h>
23
25
26class QWindow;
27
28namespace QtWaylandClient {
29
30class QWaylandWindow;
31class QWaylandInputDevice;
32class QWaylandExtendedSurface;
33
34class Q_WAYLANDCLIENT_EXPORT QWaylandWlShellSurface : public QWaylandShellSurface
36{
38public:
41
44
47
48 void setTitle(const QString & title) override;
49 void setAppId(const QString &appId) override;
50
52 bool wantsDecorations() const override;
53
54 std::any surfaceRole() const override { return object(); };
55
56protected:
58
59private:
61 void setTopLevel();
64
65 QWaylandWindow *m_window = nullptr;
66 struct {
72 // There's really no need to have pending and applied state on wl-shell, but we do it just to
73 // keep the different shell implementations more similar.
75
81
82 friend class QWaylandWindow;
83};
84
86
87}
88
89#endif // QWAYLANDSHELLSURFACE_H
Combined button and popup list for selecting options.