File indexing completed on 2024-03-24 04:02:17

0001 /*
0002     SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "kwindoweffects_p.h"
0008 #include "pluginwrapper_p.h"
0009 #include <QWindow>
0010 
0011 KWindowEffectsPrivate::KWindowEffectsPrivate()
0012 {
0013 }
0014 
0015 KWindowEffectsPrivate::~KWindowEffectsPrivate()
0016 {
0017 }
0018 
0019 namespace KWindowEffects
0020 {
0021 bool isEffectAvailable(Effect effect)
0022 {
0023     return KWindowSystemPluginWrapper::self().effects()->isEffectAvailable(effect);
0024 }
0025 
0026 void enableBlurBehind(QWindow *window, bool enable, const QRegion &region)
0027 {
0028     KWindowSystemPluginWrapper::self().effects()->enableBlurBehind(window, enable, region);
0029 }
0030 
0031 void enableBackgroundContrast(QWindow *window, bool enable, qreal contrast, qreal intensity, qreal saturation, const QRegion &region)
0032 {
0033     KWindowSystemPluginWrapper::self().effects()->enableBackgroundContrast(window, enable, contrast, intensity, saturation, region);
0034 }
0035 
0036 void slideWindow(QWindow *window, SlideFromLocation location, int offset)
0037 {
0038     KWindowSystemPluginWrapper::self().effects()->slideWindow(window, location, offset);
0039 }
0040 }