Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
Definition qstring.h:192
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
void setServerBufferIntegrationName(const QString &name)
HardwareIntegration(QWaylandCompositor *compositor)
void hardware_integration_bind_resource(Resource *resource) override
void setClientBufferIntegrationName(const QString &name)
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
static QOpenGLCompositor * compositor
GLuint name