KWaylandServer

compositor_interface.h
1 /*
2  SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
3  SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7 #pragma once
8 
9 #include "surface_interface.h"
10 
11 #include <QObject>
12 
13 #include <KWaylandServer/kwaylandserver_export.h>
14 
15 namespace KWaylandServer
16 {
17 class CompositorInterfacePrivate;
18 class Display;
19 
20 /**
21  * The CompositorInterface global allows clients to create surfaces and region objects.
22  *
23  * The CompositorInterface corresponds to the Wayland interface @c wl_compositor.
24  */
25 class KWAYLANDSERVER_EXPORT CompositorInterface : public QObject
26 {
27  Q_OBJECT
28 
29 public:
30  explicit CompositorInterface(Display *display, QObject *parent = nullptr);
31  ~CompositorInterface() override;
32 
33  /**
34  * Returns the Display object for this CompositorInterface.
35  */
36  Display *display() const;
37 
38 Q_SIGNALS:
39  /**
40  * This signal is emitted when a new SurfaceInterface @a surface has been created.
41  */
42  void surfaceCreated(KWaylandServer::SurfaceInterface *surface);
43 
44 private:
46 };
47 
48 } // namespace KWaylandServer
Class holding the Wayland server display loop.
Definition: display.h:47
Resource representing a wl_surface.
The CompositorInterface global allows clients to create surfaces and region objects.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 23:08:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.