KWaylandServer

clientbufferintegration.h
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 #pragma once
8 
9 #include "clientbuffer.h"
10 
11 #include <QPointer>
12 
13 namespace KWaylandServer
14 {
15 class Display;
16 
17 class KWAYLANDSERVER_EXPORT ClientBufferIntegration : public QObject
18 {
19  Q_OBJECT
20 
21 public:
22  explicit ClientBufferIntegration(Display *display);
23  ~ClientBufferIntegration() override;
24 
25  Display *display() const;
26 
27  virtual ClientBuffer *createBuffer(wl_resource *resource);
28 
29 private:
30  QPointer<Display> m_display;
31 };
32 
33 } // namespace KWaylandServer
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.