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

« back to all changes in this revision

Viewing changes to kwin/effects/zoom.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) 2006 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_ZOOM_H
 
12
#define KWIN_ZOOM_H
 
13
 
 
14
#include <kwineffects.h>
 
15
 
 
16
namespace KWin
 
17
{
 
18
 
 
19
class ZoomEffect
 
20
    : public QObject, public Effect
 
21
    {
 
22
    Q_OBJECT
 
23
    public:
 
24
        ZoomEffect();
 
25
        virtual void prePaintScreen( ScreenPrePaintData& data, int time );
 
26
        virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data );
 
27
        virtual void postPaintScreen();
 
28
        virtual void mouseChanged( const QPoint& pos, const QPoint& old,
 
29
            Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers );
 
30
    private slots:
 
31
        void zoomIn();
 
32
        void zoomOut();
 
33
        void actualSize();
 
34
    private:
 
35
        float zoom;
 
36
        float target_zoom;
 
37
    };
 
38
 
 
39
} // namespace
 
40
 
 
41
#endif