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
4#ifndef WL_REGION_H
5#define WL_REGION_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 <QtWaylandCompositor/qtwaylandcompositorglobal.h>
19
20#include <QRegion>
21#include <private/qglobal_p.h>
22
23#include <wayland-util.h>
24#include <QtWaylandCompositor/private/qwayland-server-wayland.h>
25
27
28namespace QtWayland {
29
30class Q_WAYLANDCOMPOSITOR_EXPORT Region : public QtWaylandServer::wl_region
31{
32public:
35
36 static Region *fromResource(struct ::wl_resource *resource);
37
38 uint id() const { return wl_resource_get_id(resource()->handle); }
39
40 QRegion region() const { return m_region; }
41
42private:
44
46
48
52};
53
54}
55
56QT_END_NAMESPACE
57
58#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)
static QRegion infiniteRegion()