KWayland

compositor_interface.h
1 /*
2  SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #ifndef WAYLAND_SERVER_COMPOSITOR_INTERFACE_H
7 #define WAYLAND_SERVER_COMPOSITOR_INTERFACE_H
8 
9 #include "global.h"
10 #include "region_interface.h"
11 #include "surface_interface.h"
12 
13 #include <QObject>
14 
15 #include <KWayland/Server/kwaylandserver_export.h>
16 
17 namespace KWayland
18 {
19 namespace Server
20 {
21 class Display;
22 class SurfaceInterface;
23 
24 /**
25  * @brief Represents the Global for wl_compositor interface.
26  *
27  **/
28 class KWAYLANDSERVER_EXPORT CompositorInterface : public Global
29 {
30  Q_OBJECT
31 public:
32  virtual ~CompositorInterface();
33 
34 Q_SIGNALS:
35  /**
36  * Emitted whenever this CompositorInterface created a SurfaceInterface.
37  **/
38  void surfaceCreated(KWayland::Server::SurfaceInterface *);
39  /**
40  * Emitted whenever this CompositorInterface created a RegionInterface.
41  **/
42  void regionCreated(KWayland::Server::RegionInterface *);
43 
44 private:
45  explicit CompositorInterface(Display *display, QObject *parent = nullptr);
46  friend class Display;
47  class Private;
48 };
49 
50 }
51 }
52 
53 #endif
Resource for the wl_region.
Resource representing a wl_surface.
Class holding the Wayland server display loop.
Definition: display.h:88
Represents the Global for wl_compositor interface.
Base class for all Globals.
Definition: global.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed May 12 2021 22:49:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.