KWindowSystem

kwindoweffects_dummy.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Marco Martin <[email protected]>
3  SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #include "kwindoweffects_dummy_p.h"
9 
10 #include <QList>
11 
12 KWindowEffectsPrivateDummy::KWindowEffectsPrivateDummy()
13 {
14 }
15 
16 KWindowEffectsPrivateDummy::~KWindowEffectsPrivateDummy()
17 {
18 }
19 
20 bool KWindowEffectsPrivateDummy::isEffectAvailable(KWindowEffects::Effect effect)
21 {
22  Q_UNUSED(effect)
23  return false;
24 }
25 
26 void KWindowEffectsPrivateDummy::slideWindow(WId id, KWindowEffects::SlideFromLocation location, int offset)
27 {
28  Q_UNUSED(id)
29  Q_UNUSED(location)
30  Q_UNUSED(offset)
31 }
32 
33 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 81)
34 QList<QSize> KWindowEffectsPrivateDummy::windowSizes(const QList<WId> &ids)
35 {
37  windowSizes.reserve(ids.size());
38  for (int i = 0; i < ids.size(); ++i) {
39  windowSizes.append(QSize());
40  }
41  return windowSizes;
42 }
43 #endif
44 
45 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
46 void KWindowEffectsPrivateDummy::presentWindows(WId controller, const QList<WId> &ids)
47 {
48  Q_UNUSED(controller)
49  Q_UNUSED(ids)
50 }
51 #endif
52 
53 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
54 void KWindowEffectsPrivateDummy::presentWindows(WId controller, int desktop)
55 {
56  Q_UNUSED(controller)
57  Q_UNUSED(desktop)
58 }
59 #endif
60 
61 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
62 void KWindowEffectsPrivateDummy::highlightWindows(WId controller, const QList<WId> &ids)
63 {
64  Q_UNUSED(controller)
65  Q_UNUSED(ids)
66 }
67 #endif
68 
69 void KWindowEffectsPrivateDummy::enableBlurBehind(WId window, bool enable, const QRegion &region)
70 {
71  Q_UNUSED(window)
72  Q_UNUSED(enable)
73  Q_UNUSED(region)
74 }
75 
76 void KWindowEffectsPrivateDummy::enableBackgroundContrast(WId window, bool enable, qreal contrast, qreal intensity, qreal saturation, const QRegion &region)
77 {
78  Q_UNUSED(window)
79  Q_UNUSED(enable)
80  Q_UNUSED(contrast)
81  Q_UNUSED(intensity)
82  Q_UNUSED(saturation)
83  Q_UNUSED(region)
84 }
85 
86 #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 67)
87 void KWindowEffectsPrivateDummy::markAsDashboard(WId window)
88 {
89  Q_UNUSED(window)
90 }
91 #endif
92 
93 void KWindowEffectsPrivateDummy::setBackgroundFrost(QWindow *window, QColor color, const QRegion &region)
94 {
95  Q_UNUSED(window)
96  Q_UNUSED(color)
97  Q_UNUSED(region)
98 }
QList< QSize > windowSizes(const QList< WId > &ids)
void reserve(int alloc)
int size() const const
void append(const T &value)
Namespace for common standardized window effects.
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.