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

« back to all changes in this revision

Viewing changes to kwin/effects/_test/demo_showpicture.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_DEMO_SHOWPICTURE_H
 
12
#define KWIN_DEMO_SHOWPICTURE_H
 
13
 
 
14
#include <kwineffects.h>
 
15
#include <kwinglutils.h>
 
16
 
 
17
namespace KWin
 
18
{
 
19
 
 
20
class ShowPictureEffect
 
21
    : public Effect
 
22
{
 
23
public:
 
24
    ShowPictureEffect();
 
25
    virtual ~ShowPictureEffect();
 
26
    virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
 
27
private:
 
28
    void loadPicture();
 
29
    bool init;
 
30
    GLTexture* picture;
 
31
    QRect pictureRect;
 
32
};
 
33
 
 
34
} // namespace
 
35
 
 
36
#endif