KWin
Loading...
Searching...
No Matches
windoweffects.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2019 Martin Flöser <mgraesslin@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5*/
6#pragma once
7#include <QObject>
8#include <kwindowsystem_version.h>
9#include <private/kwindoweffects_p.h>
10
11namespace KWin
12{
13
14class WindowEffects : public QObject, public KWindowEffectsPrivate
15{
16public:
18 ~WindowEffects() override;
19
20 bool isEffectAvailable(KWindowEffects::Effect effect) override;
21 void slideWindow(QWindow *window, KWindowEffects::SlideFromLocation location, int offset) override;
22 void enableBlurBehind(QWindow *window, bool enable = true, const QRegion &region = QRegion()) override;
23 void enableBackgroundContrast(QWindow *window, bool enable = true, qreal contrast = 1, qreal intensity = 1, qreal saturation = 1, const QRegion &region = QRegion()) override;
24};
25
26}
void slideWindow(QWindow *window, KWindowEffects::SlideFromLocation location, int offset) override
void enableBackgroundContrast(QWindow *window, bool enable=true, qreal contrast=1, qreal intensity=1, qreal saturation=1, const QRegion &region=QRegion()) override
bool isEffectAvailable(KWindowEffects::Effect effect) override
void enableBlurBehind(QWindow *window, bool enable=true, const QRegion &region=QRegion()) override