kwin/scene.h
Luboš Luňák 06203d0652 Don't bother with trying to transform window damage,
when there are any transformations, it should simply
repaint everything (todo).


svn path=/branches/work/kwin_composite/; revision=593450
2006-10-07 21:18:36 +00:00

44 lines
1.2 KiB
C++

/*****************************************************************
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_SCENE_H
#define KWIN_SCENE_H
#include "utils.h"
namespace KWinInternal
{
class Workspace;
class Scene
{
public:
Scene( Workspace* ws );
virtual ~Scene() = 0;
// repaints the given screen areas, windows provides the stacking order
virtual void paint( QRegion damage, ToplevelList windows ) = 0;
// shape/size of a window changed
virtual void windowGeometryShapeChanged( Toplevel* );
// opacity of a window changed
virtual void windowOpacityChanged( Toplevel* );
// a new window has been created
virtual void windowAdded( Toplevel* );
// a window has been destroyed
virtual void windowDeleted( Toplevel* );
protected:
Workspace* wspace;
};
extern Scene* scene;
} // namespace
#endif