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 "kdelibs_export.h"
00029 
00030 #ifdef Q_OS_UNIX
00031 
00032 class KWinModulePrivate;
00033 
00053 class KDECORE_EXPORT KWinModule : public QObject
00054 {
00055     Q_OBJECT
00056 
00057 public:
00058 
00059     enum { INFO_DESKTOP=1,
00060            INFO_WINDOWS=2,
00061            INFO_ALL=32767 };
00089     KWinModule( QObject* parent, int what );
00095     KWinModule( QObject* parent = 0 );
00096 
00100     ~KWinModule();
00101 
00120     const QValueList<WId>& windows() const;
00121 
00128     const QValueList<WId>& stackingOrder() const;
00129 
00135     bool hasWId(WId id) const;
00136 
00141     const QValueList<WId>& systemTrayWindows() const;
00142 
00147     int currentDesktop() const;
00148 
00153     int numberOfDesktops() const;
00154 
00160     WId activeWindow() const;
00161 
00169     QRect workArea( int desktop = - 1 ) const;
00170 
00171 
00182     QRect workArea( const QValueList<WId> &excludes, int desktop = -1) const;
00183 
00189     QString desktopName( int desktop ) const;
00190 
00196     void setDesktopName( int desktop, const QString& name );
00197 
00207     void doNotManage( const QString& title );
00208 
00209 
00210 signals:
00211 
00216     void currentDesktopChanged( int desktop);
00217 
00222     void windowAdded(WId id);
00223 
00228     void windowRemoved(WId id);
00229 
00234     void activeWindowChanged(WId id);
00235 
00239     void desktopNamesChanged();
00240 
00245     void numberOfDesktopsChanged(int num);
00246 
00251     void systemTrayWindowAdded(WId id);
00252 
00257     void systemTrayWindowRemoved(WId id);
00258 
00262     void workAreaChanged();
00263 
00269     void strutChanged();
00270     
00275     void stackingOrderChanged();
00276 
00277 
00288     void windowChanged(WId id, const unsigned long* properties );
00289 
00299     void windowChanged(WId id, unsigned int properties);
00300 
00305     void windowChanged(WId id);
00306 
00307 protected:
00308     virtual void connectNotify( const char* signal );
00309         
00310 private:
00311     void init(int);
00312 
00313     KWinModulePrivate* d;
00314 
00315     friend class KWinModulePrivate;
00316 };
00317 
00318 #endif //Q_OS_UNIX
00319 
00320 #endif
KDE Logo
This file is part of the documentation for kdecore Library Version 3.3.90.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 30 10:09:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003