KWaylandServer

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 #pragma once
7 
8 #include <QMarginsF>
9 #include <QObject>
10 
11 #include <KWaylandServer/kwaylandserver_export.h>
12 
13 struct wl_resource;
14 
15 namespace KWaylandServer
16 {
17 class ClientBuffer;
18 class Display;
19 class ShadowManagerInterfacePrivate;
20 class ShadowInterfacePrivate;
21 
22 class KWAYLANDSERVER_EXPORT ShadowManagerInterface : public QObject
23 {
24  Q_OBJECT
25 
26 public:
27  explicit ShadowManagerInterface(Display *display, QObject *parent = nullptr);
28  ~ShadowManagerInterface() override;
29 
30  Display *display() const;
31 
32 private:
34 };
35 
36 class KWAYLANDSERVER_EXPORT ShadowInterface : public QObject
37 {
38  Q_OBJECT
39 public:
40  ~ShadowInterface() override;
41 
42  ClientBuffer *left() const;
43  ClientBuffer *topLeft() const;
44  ClientBuffer *top() const;
45  ClientBuffer *topRight() const;
46  ClientBuffer *right() const;
47  ClientBuffer *bottomRight() const;
48  ClientBuffer *bottom() const;
49  ClientBuffer *bottomLeft() const;
50 
51  QMarginsF offset() const;
52 
53 private:
54  explicit ShadowInterface(ShadowManagerInterface *manager, wl_resource *resource);
55  friend class ShadowManagerInterfacePrivate;
56 
58 };
59 
60 }
QTextStream & right(QTextStream &stream)
QTextStream & left(QTextStream &stream)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 23 2021 23:08:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.