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
qwaylandbuffer.cpp
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// Copyright (C) 2017 Giulio Camuffo.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5
#
include
"qwaylandbuffer_p.h"
6
7
#
include
<
QDebug
>
8
9
QT_BEGIN_NAMESPACE
10
11
namespace
QtWaylandClient
{
12
13
QWaylandBuffer
::
QWaylandBuffer
()
14
{
15
}
16
17
QWaylandBuffer
::~
QWaylandBuffer
()
18
{
19
if
(
mBuffer
)
20
wl_buffer_destroy
(
mBuffer
);
21
}
22
23
void
QWaylandBuffer
::
init
(
wl_buffer
*
buf
)
24
{
25
mBuffer
=
buf
;
26
wl_buffer_add_listener
(
buf
, &
listener
,
this
);
27
}
28
29
void
QWaylandBuffer
::
release
(
void
*
data
,
wl_buffer
*)
30
{
31
QWaylandBuffer
*
self
=
static_cast
<
QWaylandBuffer
*>(
data
);
32
self
->
mBusy
=
false
;
33
self
->
mCommitted
=
false
;
34
if
(
self
->
mDeleteOnRelease
)
35
delete
self
;
36
}
37
38
void
QWaylandBuffer
::
setDeleteOnRelease
(
bool
deleteOnRelease
)
39
{
40
mDeleteOnRelease
=
deleteOnRelease
;
41
}
42
43
const
wl_buffer_listener
QWaylandBuffer
::
listener
= {
44
QWaylandBuffer
::
release
45
};
46
47
}
48
49
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QtWaylandClient
Definition
qwaylandclientextension.h:15
qtwayland
src
client
qwaylandbuffer.cpp
Generated on Tue Apr 22 2025 17:12:10 for Qt by
1.13.2