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
qwlregion_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:critical reason:network-protocol
4
5#ifndef WL_REGION_H
6#define WL_REGION_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 <QtWaylandCompositor/qtwaylandcompositorglobal.h>
20
21#include <QRegion>
22#include <private/qglobal_p.h>
23
24#include <wayland-util.h>
25#include <QtWaylandCompositor/private/qwayland-server-wayland.h>
26
28
29namespace QtWayland {
30
31class Q_WAYLANDCOMPOSITOR_EXPORT Region : public QtWaylandServer::wl_region
32{
33public:
36
37 static Region *fromResource(struct ::wl_resource *resource);
38
39 uint id() const { return wl_resource_get_id(resource()->handle); }
40
41 QRegion region() const { return m_region; }
42
43private:
45
47
49
53};
54
55}
56
57QT_END_NAMESPACE
58
59#endif // WL_REGION_H
\inmodule QtWaylandCompositor
QWaylandSurfaceRole(const QByteArray &n)
Creates a QWaylandSurfaceRole and assigns it name.
const QByteArray name()
Returns the name of the QWaylandSurfaceRole.
\qmltype WaylandSurface \nativetype QWaylandSurface \inqmlmodule QtWayland.Compositor
FrameCallback(QWaylandSurface *surf, wl_resource *res)
static void destroyCallback(wl_resource *res)
Combined button and popup list for selecting options.
static QRegion infiniteRegion()