Qt 6.x
The Qt SDK
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
14 , qt_hardware_integration(compositor->display(), 1)
15{
16}
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:127
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition qstring.h:1083
\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