KWayland

qtsurfaceextension_interface.h
1 /*
2  SPDX-FileCopyrightText: 2015 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_QTSURFACEEXTENSION_INTERFACE_H
7 #define WAYLAND_SERVER_QTSURFACEEXTENSION_INTERFACE_H
8 
9 #include <QObject>
10 
11 #include <KWayland/Server/kwaylandserver_export.h>
12 
13 #include "global.h"
14 #include "resource.h"
15 
16 class QSize;
17 struct wl_resource;
18 
19 namespace KWayland
20 {
21 namespace Server
22 {
23 
24 class Display;
25 class SurfaceInterface;
26 class QtExtendedSurfaceInterface;
27 
31 class KWAYLANDSERVER_EXPORT QtSurfaceExtensionInterface : public Global
32 {
33  Q_OBJECT
34 public:
35  virtual ~QtSurfaceExtensionInterface();
36 
37 Q_SIGNALS:
39 
40 private:
41  friend class Display;
42  explicit QtSurfaceExtensionInterface(Display *display, QObject *parent);
43  class Private;
44 };
45 
49 class KWAYLANDSERVER_EXPORT QtExtendedSurfaceInterface : public Resource
50 {
51  Q_OBJECT
52 public:
53  virtual ~QtExtendedSurfaceInterface();
54 
55  SurfaceInterface *surface() const;
56  QtSurfaceExtensionInterface *shell() const;
57 
58  void close();
59 
60 Q_SIGNALS:
65  void raiseRequested();
70  void lowerRequested();
71 
72 private:
73  friend class QtSurfaceExtensionInterface;
74  explicit QtExtendedSurfaceInterface(QtSurfaceExtensionInterface *shell, SurfaceInterface *parent, wl_resource *parentResource);
75  class Private;
76  Private *d_func() const;
77 };
78 
79 }
80 }
81 
82 #endif
Resource representing a wl_surface.
Class holding the Wayland server display loop.
Definition: display.h:89
Base class for all Globals.
Definition: global.h:46
Represents a bound Resource.
Definition: resource.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 3 2020 22:49:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.