2006-07-04 20:51:01 +00:00
|
|
|
/*****************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
|
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
******************************************************************/
|
|
|
|
|
2006-07-05 12:56:04 +00:00
|
|
|
// TODO MIT or some other licence, perhaps move to some lib
|
|
|
|
|
2006-07-04 20:51:01 +00:00
|
|
|
#ifndef KWIN_EFFECTS_H
|
|
|
|
#define KWIN_EFFECTS_H
|
|
|
|
|
|
|
|
namespace KWinInternal
|
|
|
|
{
|
|
|
|
|
|
|
|
class Toplevel;
|
|
|
|
class Workspace;
|
|
|
|
|
2006-07-05 12:56:04 +00:00
|
|
|
class Matrix
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Matrix();
|
2006-07-05 22:26:34 +00:00
|
|
|
double m[ 4 ][ 4 ];
|
2006-07-05 12:56:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class EffectData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Matrix matrix;
|
2006-07-05 22:26:34 +00:00
|
|
|
double opacity;
|
2006-07-05 12:56:04 +00:00
|
|
|
};
|
|
|
|
|
2006-07-04 20:51:01 +00:00
|
|
|
class Effect
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~Effect();
|
|
|
|
virtual void windowUserMoved( Toplevel* c );
|
|
|
|
virtual void windowUserResized( Toplevel* c );
|
2006-07-05 12:56:04 +00:00
|
|
|
virtual void paintWindow( Toplevel* c, EffectData& data );
|
|
|
|
virtual void paintWorkspace( Workspace*, EffectData& data );
|
2006-07-04 20:51:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class EffectsHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void windowUserMoved( Toplevel* c );
|
|
|
|
void windowUserResized( Toplevel* c );
|
2006-07-05 12:56:04 +00:00
|
|
|
void paintWindow( Toplevel* c, EffectData& data );
|
|
|
|
void paintWorkspace( Workspace*, EffectData& data );
|
2006-07-04 20:51:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern EffectsHandler* effects;
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|