KWaylandServer

clientbufferintegration.cpp
1 /*
2  SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #include "clientbufferintegration.h"
8 #include "display.h"
9 #include "display_p.h"
10 
11 namespace KWaylandServer
12 {
13 ClientBufferIntegration::ClientBufferIntegration(Display *display)
14  : QObject(display)
15  , m_display(display)
16 {
17  DisplayPrivate *displayPrivate = DisplayPrivate::get(display);
18  displayPrivate->bufferIntegrations.append(this);
19 }
20 
21 ClientBufferIntegration::~ClientBufferIntegration()
22 {
23  if (m_display) {
24  DisplayPrivate *displayPrivate = DisplayPrivate::get(m_display);
25  displayPrivate->bufferIntegrations.removeOne(this);
26  }
27 }
28 
29 Display *ClientBufferIntegration::display() const
30 {
31  return m_display;
32 }
33 
34 ClientBuffer *ClientBufferIntegration::createBuffer(wl_resource *resource)
35 {
36  Q_UNUSED(resource)
37  return nullptr;
38 }
39 
40 } // namespace KWaylandServer
wl_resource * resource() const
Returns the wl_resource for this ClientBuffer.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 23 2021 23:08:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.