kdecore Library API Documentation

kwinmodule.h

00001 /* This file is part of the KDE libraries
00002     Copyright (C) 1999 Matthias Ettrich (ettrich@kde.org)
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017     Boston, MA 02111-1307, USA.
00018 */
00019 /*
00020  * kwinmodule.h. Part of the KDE project.
00021  */
00022 
00023 #ifndef KWINMODULE_H
00024 #define KWINMODULE_H
00025 
00026 #include <qobject.h>
00027 #include <qvaluelist.h>
00028 #include "kdemacros.h"
00029 
00030 class KWinModulePrivate;
00031 
00051 class KWinModule : public QObject
00052 {
00053     Q_OBJECT
00054 
00055 public:
00056 
00057     enum { INFO_DESKTOP=1,
00058            INFO_WINDOWS=2,
00059            INFO_ALL=32767 };
00087     KWinModule( QObject* parent, int what );
00093     KWinModule( QObject* parent = 0 );
00094 
00098     ~KWinModule();
00099 
00118     const QValueList<WId>& windows() const;
00119 
00126     const QValueList<WId>& stackingOrder() const;
00127 
00133     bool hasWId(WId id) const;
00134 
00139     const QValueList<WId>& systemTrayWindows() const;
00140 
00145     int currentDesktop() const;
00146 
00151     int numberOfDesktops() const;
00152 
00158     WId activeWindow() const;
00159 
00167     QRect workArea( int desktop = - 1 ) const;
00168 
00169 
00180     QRect workArea( const QValueList<WId> &excludes, int desktop = -1) const;
00181 
00187     QString desktopName( int desktop ) const;
00188 
00194     void setDesktopName( int desktop, const QString& name );
00195 
00205     void doNotManage( const QString& title );
00206 
00207 
00208 signals:
00209 
00214     void currentDesktopChanged( int desktop);
00215 
00220     void windowAdded(WId id);
00221 
00226     void windowRemoved(WId id);
00227 
00232     void activeWindowChanged(WId id);
00233 
00237     void desktopNamesChanged();
00238 
00243     void numberOfDesktopsChanged(int num);
00244 
00249     void systemTrayWindowAdded(WId id);
00250 
00255     void systemTrayWindowRemoved(WId id);
00256 
00260     void workAreaChanged();
00261 
00267     void strutChanged();
00268     
00273     void stackingOrderChanged();
00274 
00275 
00286     void windowChanged(WId id, const unsigned long* properties );
00287 
00297     void windowChanged(WId id, unsigned int properties) KDE_DEPRECATED;
00298 
00303     void windowChanged(WId id);
00304 
00305 protected:
00306     virtual void connectNotify( const char* signal );
00307         
00308 private:
00309     void init(int);
00310 
00311     KWinModulePrivate* d;
00312 
00313     friend class KWinModulePrivate;
00314 };
00315 
00316 #endif
KDE Logo
This file is part of the documentation for kdecore Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Apr 21 18:42:59 2004 by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2003