• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KWin

deleted.h

Go to the documentation of this file.
00001 /********************************************************************
00002  KWin - the KDE window manager
00003  This file is part of the KDE project.
00004 
00005 Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org>
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program.  If not, see <http://www.gnu.org/licenses/>.
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         // used by effects to keep the window around for e.g. fadeout effects when it's destroyed
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 ); // use create()
00046         void copyToDeleted( Toplevel* c );
00047         virtual ~Deleted(); // deleted only using unrefWindow()
00048         int delete_refcount;
00049         double window_opacity;
00050         int desk;
00051         QRect contentsRect; // for clientPos()/clientSize()
00052     };
00053 
00054 inline void Deleted::refWindow()
00055     {
00056     ++delete_refcount;
00057     }
00058 
00059 } // namespace
00060 
00061 #endif

KWin

Skip menu "KWin"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal