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.cpp
Go to the documentation of this file.
1
// Copyright (C) 2017 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
#
include
"qwlregion_p.h"
6
7
#
include
<
QtWaylandCompositor
/
private
/
qwaylandutils_p
.
h
>
8
9
QT_BEGIN_NAMESPACE
10
11
namespace
QtWayland
{
12
13
Region
::
Region
(
struct
wl_client *
client
,
uint32_t
id
)
14
:
QtWaylandServer
::
wl_region
(
client
,
id
, 1)
15
{
16
}
17
18
Region
::~
Region
()
19
{
20
}
21
22
Region
*
Region
::
fromResource
(
struct
::wl_resource *
resource
)
23
{
24
return
QtWayland
::
fromResource
<
Region
*>(
resource
);
25
}
26
27
void
Region
::
region_destroy_resource
(
Resource
*)
28
{
29
delete
this
;
30
}
31
32
void
Region
::
region_destroy
(
Resource
*
resource
)
33
{
34
wl_resource_destroy
(
resource
->
handle
);
35
}
36
37
void
Region
::
region_add
(
Resource
*,
int32_t
x
,
int32_t
y
,
int32_t
w
,
int32_t
h
)
38
{
39
m_region
+=
QRect
(
x
,
y
,
w
,
h
);
40
}
41
42
void
Region
::
region_subtract
(
Resource
*,
int32_t
x
,
int32_t
y
,
int32_t
w
,
int32_t
h
)
43
{
44
m_region
-=
QRect
(
x
,
y
,
w
,
h
);
45
}
46
47
}
48
49
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtWayland
Definition
qwaylanddisplay_p.h:54
qtwayland
src
compositor
wayland_wrapper
qwlregion.cpp
Generated on
for Qt by
1.16.1