~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to kwin/effects/demo_wavywindows.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-09-05 20:45:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070905204514-632hhspl0nvrc84i
Tags: upstream-3.93.0
ImportĀ upstreamĀ versionĀ 3.93.0

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 Rivo Laks <rivolaks@hot.ee>
 
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 DEMO_WAVYWINDOWS_H
 
12
#define DEMO_WAVYWINDOWS_H
 
13
 
 
14
// Include with base class for effects.
 
15
#include <kwineffects.h>
 
16
 
 
17
namespace KWin
 
18
{
 
19
 
 
20
/**
 
21
 * Demo effect which applies waves to all windows
 
22
 **/
 
23
class WavyWindowsEffect
 
24
    : public Effect
 
25
    {
 
26
    public:
 
27
        WavyWindowsEffect();
 
28
 
 
29
        virtual void prePaintScreen( ScreenPrePaintData& data, int time );
 
30
        virtual void prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time );
 
31
        virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data );
 
32
        virtual void postPaintScreen();
 
33
 
 
34
    private:
 
35
        float mTimeElapsed;
 
36
    };
 
37
 
 
38
} // namespace
 
39
 
 
40
#endif // DEMO_WAVYWINDOWS_H