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 private:
00045 Deleted( Workspace *ws );
00046 void copyToDeleted( Toplevel* c );
00047 virtual ~Deleted();
00048 int delete_refcount;
00049 double window_opacity;
00050 int desk;
00051 QRect contentsRect;
00052 };
00053
00054 inline void Deleted::refWindow()
00055 {
00056 ++delete_refcount;
00057 }
00058
00059 }
00060
00061 #endif