KWin
Loading...
Searching...
No Matches
blur.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
3 SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
4 SPDX-FileCopyrightText: 2020 David Edmundson <davidedmundson@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8#pragma once
9
10#include "kwin_export.h"
11
12#include <QObject>
13#include <memory>
14
15struct wl_resource;
16
17namespace KWin
18{
19class Display;
20class BlurManagerInterfacePrivate;
21class BlurInterfacePrivate;
22
31class KWIN_EXPORT BlurManagerInterface : public QObject
32{
33 Q_OBJECT
34public:
35 explicit BlurManagerInterface(Display *display, QObject *parent = nullptr);
36 ~BlurManagerInterface() override;
37
38 void remove();
39
40private:
41 std::unique_ptr<BlurManagerInterfacePrivate> d;
42};
43
58class KWIN_EXPORT BlurInterface : public QObject
59{
60 Q_OBJECT
61public:
62 ~BlurInterface() override;
63
67 QRegion region();
68
69private:
70 explicit BlurInterface(wl_resource *resource);
72
73 std::unique_ptr<BlurInterfacePrivate> d;
74};
75
76}
Represents the Resource for the org_kde_kwin_blur interface.
Definition blur.h:59
~BlurInterface() override
Represents the Global for org_kde_kwin_blur_manager interface.
Definition blur.h:32
Class holding the Wayland server display loop.
Definition display.h:34
struct _XDisplay Display