KWayland
10 #include <wayland-server.h>
16 Global::Private::Private(Display *d,
const wl_interface *interface, quint32 version)
18 , m_interface(interface)
23 Global::Private::~Private() =
default;
25 void Global::Private::bind(wl_client *client,
void *data, uint32_t version, uint32_t
id)
27 auto d =
reinterpret_cast<Private *
>(data);
28 d->bind(client, version,
id);
31 void Global::Private::create()
34 global = wl_global_create(*display, m_interface, m_version,
this, bind);
37 Global::Global(Global::Private *d,
QObject *parent)
53 void Global::destroy()
58 Q_EMIT aboutToDestroyGlobal();
59 wl_global_destroy(d->global);
63 bool Global::isValid()
const
65 return d->global !=
nullptr;
68 Global::operator wl_global *()
const
73 Global::operator wl_global *()
Class holding the Wayland server display loop.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Feb 8 2023 03:59:21 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.