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
qwlhwintegration.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
"qwlhwintegration_p.h"
6
7
#
include
<
QtWaylandCompositor
/
QWaylandCompositor
>
8
9
QT_BEGIN_NAMESPACE
10
11
namespace
QtWayland
{
12
13
HardwareIntegration
::
HardwareIntegration
(QWaylandCompositor *compositor)
14
:
QWaylandCompositorExtensionTemplate
<
HardwareIntegration
>(
compositor
)
15
,
qt_hardware_integration
(
compositor
->
display
(), 1)
16
{
17
}
18
19
void
HardwareIntegration
::
setClientBufferIntegrationName
(
const
QString &name)
20
{
21
m_client_buffer_integration_name = name;
22
}
23
void
HardwareIntegration
::
setServerBufferIntegrationName
(
const
QString &name)
24
{
25
m_server_buffer_integration_name = name;
26
}
27
28
void
HardwareIntegration
::
hardware_integration_bind_resource
(Resource *resource)
29
{
30
if
(!m_client_buffer_integration_name.isEmpty())
31
send_client_backend(resource->handle, m_client_buffer_integration_name);
32
if
(!m_server_buffer_integration_name.isEmpty())
33
send_server_backend(resource->handle, m_server_buffer_integration_name);
34
}
35
36
}
37
38
QT_END_NAMESPACE
QtWayland::HardwareIntegration
Definition
qwlhwintegration_p.h:33
QtWayland::HardwareIntegration::setServerBufferIntegrationName
void setServerBufferIntegrationName(const QString &name)
Definition
qwlhwintegration.cpp:23
QtWayland::HardwareIntegration::HardwareIntegration
HardwareIntegration(QWaylandCompositor *compositor)
Definition
qwlhwintegration.cpp:13
QtWayland::HardwareIntegration::hardware_integration_bind_resource
void hardware_integration_bind_resource(Resource *resource) override
Definition
qwlhwintegration.cpp:28
QtWayland::HardwareIntegration::setClientBufferIntegrationName
void setClientBufferIntegrationName(const QString &name)
Definition
qwlhwintegration.cpp:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtWayland
Definition
qwaylanddisplay_p.h:54
qtwayland
src
compositor
hardware_integration
qwlhwintegration.cpp
Generated on
for Qt by
1.16.1