KWindowSystem

kwindoweffects_x11.h
1 /*
2  SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef KWINDOWEFFECTS_X11_H
8 #define KWINDOWEFFECTS_X11_H
9 #include "kwindoweffects_p.h"
10 
11 class KWindowEffectsPrivateX11 : public KWindowEffectsPrivateV2
12 {
13 public:
14  KWindowEffectsPrivateX11();
15  ~KWindowEffectsPrivateX11() override;
16  bool isEffectAvailable(KWindowEffects::Effect effect) override;
17  void slideWindow(WId id, KWindowEffects::SlideFromLocation location, int offset) override;
18 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 81)
19  QList<QSize> windowSizes(const QList<WId> &ids) override;
20 #endif
21 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
22  void presentWindows(WId controller, const QList<WId> &ids) override;
23  void presentWindows(WId controller, int desktop = NET::OnAllDesktops) override;
24  void highlightWindows(WId controller, const QList<WId> &ids) override;
25 #endif
26  void enableBlurBehind(WId window, bool enable = true, const QRegion &region = QRegion()) override;
27  void enableBackgroundContrast(WId window,
28  bool enable = true,
29  qreal contrast = 1,
30  qreal intensity = 1,
31  qreal saturation = 1,
32  const QRegion &region = QRegion()) override;
33  void setBackgroundFrost(QWindow *window, QColor color, const QRegion &region = QRegion()) override;
34 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 67)
35  void markAsDashboard(WId window) override;
36 #endif
37 };
38 
39 #endif
void markAsDashboard(WId window)
Instructs the window manager to handle the given window as dashboard window as Dashboard windows shou...
QList< QSize > windowSizes(const QList< WId > &ids)
void enableBlurBehind(WId window, bool enable, const QRegion &region)
Instructs the window manager to blur the background in the specified region behind the given window...
bool isEffectAvailable(Effect effect)
void setBackgroundFrost(QWindow *window, QColor frostColor, const QRegion &region)
Instructs the window manager to modify the color of the background in the specified region behind the...
void slideWindow(QWindow *window, SlideFromLocation location, int offset)
Mark a window as sliding from screen edge.
void presentWindows(WId controller, const QList< WId > &ids)
Activate the Present Windows effect for the given groups of windows.
void highlightWindows(WId controller, const QList< WId > &ids)
Highlight the selected windows, making all the others translucent.
void enableBackgroundContrast(WId 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...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Oct 15 2021 22:41:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.