add more spacing
[personal-kdebase.git] / workspace / kwin / effects / test / demo_shakymove.h
blobe2de1bf8c208092548b1e002d917e750fb0bc012
1 /*****************************************************************
2 KWin - the KDE window manager
3 This file is part of the KDE project.
5 Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org>
7 You can Freely distribute this program under the GNU General Public
8 License. See the file "COPYING" for the exact licensing terms.
9 ******************************************************************/
11 #ifndef DEMO_SHAKYMOVE_H
12 #define DEMO_SHAKYMOVE_H
14 #include <qtimer.h>
16 #include <kwineffects.h>
18 namespace KWin
21 class ShakyMoveEffect
22 : public QObject, public Effect
24 Q_OBJECT
25 public:
26 ShakyMoveEffect();
27 virtual void prePaintScreen( ScreenPrePaintData& data, int time );
28 virtual void prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time );
29 virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data );
30 virtual void windowUserMovedResized( EffectWindow* c, bool first, bool last );
31 virtual void windowClosed( EffectWindow* c );
32 private slots:
33 void tick();
34 private:
35 QHash< const EffectWindow*, int > windows;
36 QTimer timer;
39 } // namespace
41 #endif // DEMO_SHAKYMOVE_H