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
qwaylanddecorationhandler_p.h
Go to the documentation of this file.
1// Copyright (C) 2025
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 QWAYLANDDECORATIONHANDLER_P_H
5#define QWAYLANDDECORATIONHANDLER_P_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
20
21#include <QtWaylandClient/qtwaylandclientglobal.h>
22
23#include <QtCore/QSize>
24#include <memory>
25
27
28namespace QtWaylandClient {
29
30class QWaylandWindow;
31class QWaylandShmBuffer;
32class QWaylandDisplay;
33class QWaylandAbstractDecoration;
34
70
71class Q_WAYLANDCLIENT_EXPORT QWaylandDecorationHandler : public QObject
72{
74public:
77
78 // update the contents of the buffers/surfaces and commit them
79 void update();
80
81 void reset();
82
83 // the underlying decoration, may be null
85
86 // called when the window flags or hints change
88
89private:
91 const QRect &windowGeometry,
92 const QRect &paintGeometry,
94 QWaylandWindow *mWindow = nullptr;
95
101 bool mWindowDecorationEnabled = false;
102};
103
104} // namespace QtWaylandClient
105
106QT_END_NAMESPACE
107
108#endif // QWAYLANDDECORATIONHANDLER_P_H
Combined button and popup list for selecting options.