~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kwin/effects/_test/drunken.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************
 
2
 KWin - the KDE window manager
 
3
 This file is part of the KDE project.
 
4
 
 
5
Copyright (C) 2007 Lubos Lunak <l.lunak@kde.org>
 
6
 
 
7
You can Freely distribute this program under the GNU General Public
 
8
License. See the file "COPYING" for the exact licensing terms.
 
9
******************************************************************/
 
10
 
 
11
#ifndef KWIN_DRUNKEN_H
 
12
#define KWIN_DRUNKEN_H
 
13
 
 
14
#include <kwineffects.h>
 
15
 
 
16
namespace KWin
 
17
{
 
18
 
 
19
class DrunkenEffect
 
20
    : public Effect
 
21
{
 
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
 
31
};
 
32
 
 
33
} // namespace
 
34
 
 
35
#endif