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
5
6#include <QtWaylandCompositor/QWaylandCompositor>
7
9
10namespace QtWayland {
11
17
19{
20 m_client_buffer_integration_name = name;
21}
23{
24 m_server_buffer_integration_name = name;
25}
26
28{
29 if (!m_client_buffer_integration_name.isEmpty())
30 send_client_backend(resource->handle, m_client_buffer_integration_name);
31 if (!m_server_buffer_integration_name.isEmpty())
32 send_server_backend(resource->handle, m_server_buffer_integration_name);
33}
34
35}
36
37QT_END_NAMESPACE
void setServerBufferIntegrationName(const QString &name)
HardwareIntegration(QWaylandCompositor *compositor)
void hardware_integration_bind_resource(Resource *resource) override
void setClientBufferIntegrationName(const QString &name)