/***************************************************************** KWin - the KDE window manager This file is part of the KDE project. Copyright (C) 2006 Lubos Lunak 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