1
/********************************************************************
2
KWin - the KDE window manager
3
This file is part of the KDE project.
5
Copyright (C) 2007 Lubos Lunak <l.lunak@kde.org>
6
Copyright (C) 2007 Christian Nitschkowski <christian.nitschkowski@kdemail.net>
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or
11
(at your option) any later version.
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License
19
along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*********************************************************************/
24
Testing of painting a window more than once.
28
#ifndef KWIN_THUMBNAILASIDE_H
29
#define KWIN_THUMBNAILASIDE_H
31
#include <kwineffects.h>
38
class ThumbnailAsideEffect
43
ThumbnailAsideEffect();
44
virtual void reconfigure(ReconfigureFlags);
45
virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
47
void toggleCurrentThumbnail();
48
void slotWindowClosed(EffectWindow *w);
49
void slotWindowGeometryShapeChanged(EffectWindow *w, const QRect &old);
50
void slotWindowDamaged(EffectWindow* w, const QRect& damage);
52
void addThumbnail(EffectWindow* w);
53
void removeThumbnail(EffectWindow* w);
57
EffectWindow* window; // the same like the key in the hash (makes code simpler)
61
QHash< EffectWindow*, Data > windows;