1 | /* |
2 | SPDX-FileCopyrightText: 2014 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 | |
7 | #include "kwindoweffects_p.h" |
8 | #include "pluginwrapper_p.h" |
9 | #include <QWindow> |
10 | |
11 | KWindowEffectsPrivate::KWindowEffectsPrivate() |
12 | { |
13 | } |
14 | |
15 | KWindowEffectsPrivate::~KWindowEffectsPrivate() |
16 | { |
17 | } |
18 | |
19 | namespace KWindowEffects |
20 | { |
21 | bool isEffectAvailable(Effect effect) |
22 | { |
23 | return KWindowSystemPluginWrapper::self().effects()->isEffectAvailable(effect); |
24 | } |
25 | |
26 | void enableBlurBehind(QWindow *window, bool enable, const QRegion ®ion) |
27 | { |
28 | KWindowSystemPluginWrapper::self().effects()->enableBlurBehind(window, enable, region); |
29 | } |
30 | |
31 | void enableBackgroundContrast(QWindow *window, bool enable, qreal contrast, qreal intensity, qreal saturation, const QRegion ®ion) |
32 | { |
33 | KWindowSystemPluginWrapper::self().effects()->enableBackgroundContrast(window, enable, contrast, intensity, saturation, region); |
34 | } |
35 | |
36 | void slideWindow(QWindow *window, SlideFromLocation location, int offset) |
37 | { |
38 | KWindowSystemPluginWrapper::self().effects()->slideWindow(window, location, offset); |
39 | } |
40 | } |
41 | |