KWin
deleted.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KWIN_DELETED_H
00022 #define KWIN_DELETED_H
00023
00024 #include "toplevel.h"
00025
00026 namespace KWin
00027 {
00028
00029 class Deleted
00030 : public Toplevel
00031 {
00032 Q_OBJECT
00033 public:
00034 static Deleted* create( Toplevel* c );
00035
00036 void refWindow();
00037 void unrefWindow( bool delay = false );
00038 void discard( allowed_t );
00039 virtual int desktop() const;
00040 virtual QPoint clientPos() const;
00041 virtual QSize clientSize() const;
00042 protected:
00043 virtual void debug( kdbgstream& stream ) const;
00044 virtual bool shouldUnredirect() const;
00045 private:
00046 Deleted( Workspace *ws );
00047 void copyToDeleted( Toplevel* c );
00048 virtual ~Deleted();
00049 int delete_refcount;
00050 double window_opacity;
00051 int desk;
00052 QRect contentsRect;
00053 };
00054
00055 inline void Deleted::refWindow()
00056 {
00057 ++delete_refcount;
00058 }
00059
00060 }
00061
00062 #endif