File indexing completed on 2024-03-03 04:07:57

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