Some first attempt at effects interface.
svn path=/branches/work/kwin_composite/; revision=558191master
parent
06e47c10db
commit
4f12c1e606
@ -0,0 +1,62 @@
|
||||
/*****************************************************************
|
||||
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.
|
||||
******************************************************************/
|
||||
|
||||
#include "effects.h"
|
||||
|
||||
namespace KWinInternal
|
||||
{
|
||||
|
||||
//****************************************
|
||||
// Effect
|
||||
//****************************************
|
||||
|
||||
Effect::~Effect()
|
||||
{
|
||||
}
|
||||
|
||||
void Effect::windowUserMoved( Toplevel* )
|
||||
{
|
||||
}
|
||||
|
||||
void Effect::windowUserResized( Toplevel* )
|
||||
{
|
||||
}
|
||||
|
||||
void Effect::paintWindow( Toplevel* )
|
||||
{
|
||||
}
|
||||
|
||||
void Effect::paintWorkspace( Workspace* )
|
||||
{
|
||||
}
|
||||
|
||||
//****************************************
|
||||
// EffectsHandler
|
||||
//****************************************
|
||||
|
||||
void EffectsHandler::windowUserMoved( Toplevel* c )
|
||||
{
|
||||
}
|
||||
|
||||
void EffectsHandler::windowUserResized( Toplevel* c )
|
||||
{
|
||||
}
|
||||
|
||||
void EffectsHandler::paintWindow( Toplevel* c )
|
||||
{
|
||||
}
|
||||
|
||||
void EffectsHandler::paintWorkspace( Workspace* )
|
||||
{
|
||||
}
|
||||
|
||||
EffectsHandler* effects;
|
||||
|
||||
} // namespace
|
@ -0,0 +1,43 @@
|
||||
/*****************************************************************
|
||||
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.
|
||||
******************************************************************/
|
||||
|
||||
#ifndef KWIN_EFFECTS_H
|
||||
#define KWIN_EFFECTS_H
|
||||
|
||||
namespace KWinInternal
|
||||
{
|
||||
|
||||
class Toplevel;
|
||||
class Workspace;
|
||||
|
||||
class Effect
|
||||
{
|
||||
public:
|
||||
virtual ~Effect();
|
||||
virtual void windowUserMoved( Toplevel* c );
|
||||
virtual void windowUserResized( Toplevel* c );
|
||||
virtual void paintWindow( Toplevel* c );
|
||||
virtual void paintWorkspace( Workspace* );
|
||||
};
|
||||
|
||||
class EffectsHandler
|
||||
{
|
||||
public:
|
||||
void windowUserMoved( Toplevel* c );
|
||||
void windowUserResized( Toplevel* c );
|
||||
void paintWindow( Toplevel* c );
|
||||
void paintWorkspace( Workspace* );
|
||||
};
|
||||
|
||||
extern EffectsHandler* effects;
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue