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
qwaylandcutouts_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 Volker Krause <vkrause@kde.org>
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 QWAYLANDCUTOUTS_H
5#define QWAYLANDCUTOUTS_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 <QtWaylandClient/private/qwayland-xx-cutouts-v1.h>
19#include <QMargins>
20
21QT_BEGIN_NAMESPACE
22
23namespace QtWaylandClient {
24
25class QWaylandWindow;
26
28{
29public:
30 Cutouts(::xx_cutouts_v1 *object, QWaylandWindow *window);
32
33protected:
34 void xx_cutouts_v1_cutout_box(int32_t x, int32_t y, int32_t width, int32_t height, uint32_t type, uint32_t id) override;
35 void xx_cutouts_v1_cutout_corner(uint32_t position, uint32_t radius, uint32_t id) override;
37
38private:
39 QWaylandWindow *m_window;
40 std::vector<uint32_t> m_unhandled;
41 QMargins m_margins;
42};
43
44}
45
46QT_END_NAMESPACE
47
48#endif
void xx_cutouts_v1_configure() override
void xx_cutouts_v1_cutout_corner(uint32_t position, uint32_t radius, uint32_t id) override
Cutouts(::xx_cutouts_v1 *object, QWaylandWindow *window)
void xx_cutouts_v1_cutout_box(int32_t x, int32_t y, int32_t width, int32_t height, uint32_t type, uint32_t id) override
Combined button and popup list for selecting options.