File indexing completed on 2024-07-14 14:38:31

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_DUMMY_P_H
0008 #define KWINDOWEFFECTS_DUMMY_P_H
0009 #include "kwindoweffects_p.h"
0010 
0011 class KWindowEffectsPrivateDummy : public KWindowEffectsPrivateV2
0012 {
0013 public:
0014     KWindowEffectsPrivateDummy();
0015     ~KWindowEffectsPrivateDummy() override;
0016     bool isEffectAvailable(KWindowEffects::Effect effect) override;
0017     void slideWindow(WId id, KWindowEffects::SlideFromLocation location, int offset) override;
0018 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 81)
0019     QList<QSize> windowSizes(const QList<WId> &ids) override;
0020 #endif
0021 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
0022     void presentWindows(WId controller, const QList<WId> &ids) override;
0023     void presentWindows(WId controller, int desktop = NET::OnAllDesktops) override;
0024     void highlightWindows(WId controller, const QList<WId> &ids) override;
0025 #endif
0026     void enableBlurBehind(WId window, bool enable = true, const QRegion &region = QRegion()) override;
0027     void enableBackgroundContrast(WId window,
0028                                   bool enable = true,
0029                                   qreal contrast = 1,
0030                                   qreal intensity = 1,
0031                                   qreal saturation = 1,
0032                                   const QRegion &region = QRegion()) override;
0033     void setBackgroundFrost(QWindow *window, QColor color, const QRegion &region = QRegion()) override;
0034 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 67)
0035     void markAsDashboard(WId window) override;
0036 #endif
0037 };
0038 
0039 #endif