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

« back to all changes in this revision

Viewing changes to kwin/effects/_test/test_thumbnail.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
/*
 
12
 
 
13
 Testing of painting a window more than once.
 
14
 
 
15
*/
 
16
 
 
17
#ifndef KWIN_TEST_THUMBNAIL_H
 
18
#define KWIN_TEST_THUMBNAIL_H
 
19
 
 
20
#include <kwineffects.h>
 
21
 
 
22
namespace KWin
 
23
{
 
24
 
 
25
class TestThumbnailEffect
 
26
    : public Effect
 
27
{
 
28
public:
 
29
    TestThumbnailEffect();
 
30
    virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
 
31
    virtual void windowActivated(EffectWindow* w);
 
32
    virtual void windowDamaged(EffectWindow* w, const QRect& damage);
 
33
    virtual void windowGeometryShapeChanged(EffectWindow* w, const QRect& old);
 
34
    virtual void windowClosed(EffectWindow* w);
 
35
private:
 
36
    QRect thumbnailRect() const;
 
37
    EffectWindow* active_window;
 
38
};
 
39
 
 
40
} // namespace
 
41
 
 
42
#endif