KWindowSystem

kwindoweffects.cpp
1/*
2 SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "kwindoweffects_p.h"
8#include "pluginwrapper_p.h"
9#include <QWindow>
10
11KWindowEffectsPrivate::KWindowEffectsPrivate()
12{
13}
14
15KWindowEffectsPrivate::~KWindowEffectsPrivate()
16{
17}
18
20{
21bool isEffectAvailable(Effect effect)
22{
23 return KWindowSystemPluginWrapper::self().effects()->isEffectAvailable(effect);
24}
25
26void enableBlurBehind(QWindow *window, bool enable, const QRegion &region)
27{
28 KWindowSystemPluginWrapper::self().effects()->enableBlurBehind(window, enable, region);
29}
30
31void enableBackgroundContrast(QWindow *window, bool enable, qreal contrast, qreal intensity, qreal saturation, const QRegion &region)
32{
33 KWindowSystemPluginWrapper::self().effects()->enableBackgroundContrast(window, enable, contrast, intensity, saturation, region);
34}
35
36void slideWindow(QWindow *window, SlideFromLocation location, int offset)
37{
38 KWindowSystemPluginWrapper::self().effects()->slideWindow(window, location, offset);
39}
40}
Namespace for common standardized window effects.
void slideWindow(QWindow *window, SlideFromLocation location, int offset)
Mark a window as sliding from screen edge.
void enableBlurBehind(QWindow *window, bool enable, const QRegion &region)
Instructs the window manager to blur the background in the specified region behind the given window.
void enableBackgroundContrast(QWindow *window, bool enable, qreal contrast, qreal intensity, qreal saturation, const QRegion &region)
Instructs the window manager to modify the color of the background in the specified region behind the...
bool isEffectAvailable(Effect effect)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.