KWayland
server_decoration_interface.cpp
39 static void createCallback(wl_client *client, wl_resource *resource, uint32_t id, wl_resource *surface);
50 const struct org_kde_kwin_server_decoration_manager_interface ServerSideDecorationManagerInterface::Private::s_interface = {createCallback};
53 void ServerSideDecorationManagerInterface::Private::createCallback(wl_client *client, wl_resource *resource, uint32_t id, wl_resource *surface)
55 reinterpret_cast<Private *>(wl_resource_get_user_data(resource))->create(client, resource, id, surface);
58 void ServerSideDecorationManagerInterface::Private::create(wl_client *client, wl_resource *resource, uint32_t id, wl_resource *surface)
63 qCWarning(KWAYLAND_SERVER) << "ServerSideDecorationInterface requested for non existing SurfaceInterface";
77 ServerSideDecorationManagerInterface::Mode ServerSideDecorationManagerInterface::defaultMode() const
82 ServerSideDecorationManagerInterface::Private::Private(ServerSideDecorationManagerInterface *q, Display *d)
108 void ServerSideDecorationManagerInterface::Private::bind(wl_client *client, uint32_t version, uint32_t id)
111 wl_resource *resource = c->createResource(&org_kde_kwin_server_decoration_manager_interface, qMin(version, s_version), id);
129 ServerSideDecorationManagerInterface::ServerSideDecorationManagerInterface(Display *display, QObject *parent)
136 ServerSideDecorationManagerInterface::Private *ServerSideDecorationManagerInterface::d_func() const
154 Private(ServerSideDecorationInterface *q, ServerSideDecorationManagerInterface *c, SurfaceInterface *surface, wl_resource *parentResource);
157 ServerSideDecorationManagerInterface::Mode mode = ServerSideDecorationManagerInterface::Mode::None;
175 const struct org_kde_kwin_server_decoration_interface ServerSideDecorationInterface::Private::s_interface = {resourceDestroyedCallback, requestModeCallback};
176 QVector<ServerSideDecorationInterface::Private *> ServerSideDecorationInterface::Private::s_all;
179 void ServerSideDecorationInterface::Private::requestModeCallback(wl_client *client, wl_resource *resource, uint32_t mode)
182 ServerSideDecorationManagerInterface::Mode m = ServerSideDecorationManagerInterface::Mode::None;
216 : Resource::Private(q, c, parentResource, &org_kde_kwin_server_decoration_interface, &s_interface)
wl_resource * parentResource() const
Definition: resource.cpp:91
void setMode(ServerSideDecorationManagerInterface::Mode mode)
Sets the mode on the SurfaceInterface.
Definition: server_decoration_interface.cpp:236
static ServerSideDecorationInterface * get(SurfaceInterface *surface)
Definition: server_decoration_interface.cpp:261
@ None
Undecorated: neither client, nor server provide decoration.
Representing how a SurfaceInterface should be decorated.
Definition: server_decoration_interface.h:83
@ Server
The surface gets embedded into a decoration frame provided by the Server.
static SurfaceInterface * get(wl_resource *native)
Definition: surface_interface.cpp:725
void create()
Creates the global by creating a native wl_global and by that announcing it to the clients.
Definition: global.cpp:48
T * data() const const
Mode defaultMode() const
Definition: server_decoration_interface.cpp:77
void setDefaultMode(Mode mode)
Sets the default mode which is pushed to the Clients on creating a ServerSideDecorationInterface.
Definition: server_decoration_interface.cpp:141
@ Client
The decoration is part of the surface.
QAction * create(StandardGameAction id, const QObject *recvr, const char *slot, QObject *parent)
Manager to create ServerSideDecorationInterface.
Definition: server_decoration_interface.h:27
ServerSideDecorationManagerInterface::Mode mode() const
Definition: server_decoration_interface.cpp:244
SurfaceInterface * surface() const
Definition: server_decoration_interface.cpp:250
Resource representing a wl_surface.
Definition: surface_interface.h:62
Q_D(Todo)
virtual QVariant get(ScriptableExtension *callerPrincipal, quint64 objId, const QString &propName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Feb 8 2023 03:59:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Feb 8 2023 03:59:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.