KWin
Loading...
Searching...
No Matches
shadow.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
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 "kwin_export.h"
9
10#include <QMarginsF>
11#include <QObject>
12#include <memory>
13
14struct wl_resource;
15
16namespace KWin
17{
18
19class GraphicsBuffer;
20class Display;
21class ShadowManagerInterfacePrivate;
22class ShadowInterfacePrivate;
23
24class KWIN_EXPORT ShadowManagerInterface : public QObject
25{
26 Q_OBJECT
27
28public:
29 explicit ShadowManagerInterface(Display *display, QObject *parent = nullptr);
31
32private:
33 std::unique_ptr<ShadowManagerInterfacePrivate> d;
34};
35
36class KWIN_EXPORT ShadowInterface : public QObject
37{
38 Q_OBJECT
39public:
40 ~ShadowInterface() override;
41
50
51 QMarginsF offset() const;
52
53private:
54 explicit ShadowInterface(ShadowManagerInterface *manager, wl_resource *resource);
56
57 std::unique_ptr<ShadowInterfacePrivate> d;
58};
59
60}
Class holding the Wayland server display loop.
Definition display.h:34
GraphicsBuffer * left() const
GraphicsBuffer * bottomLeft() const
GraphicsBuffer * topRight() const
GraphicsBuffer * bottomRight() const
~ShadowInterface() override
GraphicsBuffer * top() const
GraphicsBuffer * right() const
GraphicsBuffer * topLeft() const
GraphicsBuffer * bottom() const
struct _XDisplay Display