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

KDECore

kwinmodule.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, 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 
00052 class KDECORE_EXPORT KWinModule : public QObject
00053 {
00054     Q_OBJECT
00055 
00056 public:
00057 
00058     enum { INFO_DESKTOP=1,
00059            INFO_WINDOWS=2,
00060            INFO_ALL=32767 };
00088     KWinModule( QObject* parent, int what );
00094     KWinModule( QObject* parent = 0 );
00095 
00099     ~KWinModule();
00100 
00119     const QValueList<WId>& windows() const;
00120 
00127     const QValueList<WId>& stackingOrder() const;
00128 
00134     bool hasWId(WId id) const;
00135 
00140     const QValueList<WId>& systemTrayWindows() const;
00141 
00146     int currentDesktop() const;
00147 
00152     int numberOfDesktops() const;
00153 
00160     QSize numberOfViewports(int desktop) const;
00161 
00167     QPoint currentViewport(int desktop) const;
00168 
00174     WId activeWindow() const;
00175 
00183     QRect workArea( int desktop = - 1 ) const;
00184 
00185 
00196     QRect workArea( const QValueList<WId> &excludes, int desktop = -1) const;
00197 
00203     QString desktopName( int desktop ) const;
00204 
00210     void setDesktopName( int desktop, const QString& name );
00211 
00216     bool showingDesktop() const;
00217 
00227     void doNotManage( const QString& title );
00228 
00229 
00230 signals:
00231 
00236     void currentDesktopChanged( int desktop);
00237 
00242     void windowAdded(WId id);
00243 
00248     void windowRemoved(WId id);
00249 
00254     void activeWindowChanged(WId id);
00255 
00259     void desktopNamesChanged();
00260 
00265     void numberOfDesktopsChanged(int num);
00266 
00271     void systemTrayWindowAdded(WId id);
00272 
00277     void systemTrayWindowRemoved(WId id);
00278 
00282     void workAreaChanged();
00283 
00289     void strutChanged();
00290     
00295     void stackingOrderChanged();
00296 
00297 
00308     void windowChanged(WId id, const unsigned long* properties );
00309 
00319     void windowChanged(WId id, unsigned int properties);
00320 
00325     void windowChanged(WId id);
00326 
00331     void showingDesktopChanged( bool showing );
00332 
00337     void desktopGeometryChanged(int desktop);
00338 
00343     void currentDesktopViewportChanged(int desktop, const QPoint& viewport);
00344 
00345 protected:
00346     virtual void connectNotify( const char* signal );
00347 
00348 private:
00349     void init(int);
00350 
00351     KWinModulePrivate* d;
00352 
00353     friend class KWinModulePrivate;
00354 };
00355 
00356 #endif //Q_OS_UNIX
00357 
00358 #endif

KDECore

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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