File indexing completed on 2024-04-28 03:59:24

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 #ifndef KWINDOWEFFECTS_X11_H
0008 #define KWINDOWEFFECTS_X11_H
0009 #include "kwindoweffects_p.h"
0010 
0011 class KWindowEffectsPrivateX11 : public KWindowEffectsPrivate
0012 {
0013 public:
0014     KWindowEffectsPrivateX11();
0015     ~KWindowEffectsPrivateX11() override;
0016     bool isEffectAvailable(KWindowEffects::Effect effect) override;
0017     void slideWindow(QWindow *window, KWindowEffects::SlideFromLocation location, int offset) override;
0018     void enableBlurBehind(QWindow *window, bool enable = true, const QRegion &region = QRegion()) override;
0019     void enableBackgroundContrast(QWindow *window,
0020                                   bool enable = true,
0021                                   qreal contrast = 1,
0022                                   qreal intensity = 1,
0023                                   qreal saturation = 1,
0024                                   const QRegion &region = QRegion()) override;
0025 };
0026 
0027 #endif