KWayland

shadow_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 KWAYLAND_SERVER_SHADOW_INTERFACE_H
7 #define KWAYLAND_SERVER_SHADOW_INTERFACE_H
8 
9 #include "global.h"
10 #include "resource.h"
11 
12 #include <QObject>
13 #include <QMarginsF>
14 
15 #include <KWayland/Server/kwaylandserver_export.h>
16 
17 namespace KWayland
18 {
19 namespace Server
20 {
21 
22 class BufferInterface;
23 class Display;
24 
28 class KWAYLANDSERVER_EXPORT ShadowManagerInterface : public Global
29 {
30  Q_OBJECT
31 public:
32  virtual ~ShadowManagerInterface();
33 
34 private:
35  explicit ShadowManagerInterface(Display *display, QObject *parent = nullptr);
36  friend class Display;
37  class Private;
38 };
39 
43 class KWAYLANDSERVER_EXPORT ShadowInterface : public Resource
44 {
45  Q_OBJECT
46 public:
47  virtual ~ShadowInterface();
48 
49  BufferInterface *left() const;
50  BufferInterface *topLeft() const;
51  BufferInterface *top() const;
52  BufferInterface *topRight() const;
53  BufferInterface *right() const;
54  BufferInterface *bottomRight() const;
55  BufferInterface *bottom() const;
56  BufferInterface *bottomLeft() const;
57 
58  QMarginsF offset() const;
59 
60 private:
61  explicit ShadowInterface(ShadowManagerInterface *parent, wl_resource *parentResource);
62  friend class ShadowManagerInterface;
63 
64  class Private;
65  Private *d_func() const;
66 };
67 
68 }
69 }
70 
71 #endif
Class holding the Wayland server display loop.
Definition: display.h:89
Reference counted representation of a Wayland buffer on Server side.
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 Fri Aug 7 2020 22:48:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.