not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kwin / effects / test / drunken.h
blob2b665c45362ae111c0ad16171cf5ea29f7a2eaa1
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>
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 KWIN_DRUNKEN_H
12 #define KWIN_DRUNKEN_H
14 #include <kwineffects.h>
16 namespace KWin
19 class DrunkenEffect
20 : public Effect
22 public:
23 virtual void prePaintScreen( ScreenPrePaintData& data, int time );
24 virtual void prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time );
25 virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data );
26 virtual void postPaintWindow( EffectWindow* w );
27 virtual void windowAdded( EffectWindow* w );
28 virtual void windowClosed( EffectWindow* w );
29 private:
30 QHash< EffectWindow*, double > windows; // progress
33 } // namespace
35 #endif