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
21#include <vector>
22
23QT_BEGIN_NAMESPACE
24
25namespace QtWaylandClient {
26
27class QWaylandWindow;
28
30{
31public:
32 Cutouts(::xx_cutouts_v1 *object, QWaylandWindow *window);
34
35protected:
36 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;
37 void xx_cutouts_v1_cutout_corner(uint32_t position, uint32_t radius, uint32_t id) override;
39
40private:
41 QWaylandWindow *m_window;
42 std::vector<uint32_t> m_unhandled;
43 QMargins m_margins;
44};
45
46}
47
48QT_END_NAMESPACE
49
50#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.