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

source code of kwindowsystem/src/kwindoweffects.cpp