• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

  • kdecore
kwinmodule.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 1999 Matthias Ettrich (ettrich@kde.org)
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 /*
20  * kwinmodule.h. Part of the KDE project.
21  */
22 
23 #ifndef KWINMODULE_H
24 #define KWINMODULE_H
25 
26 #include <tqobject.h>
27 #include <tqvaluelist.h>
28 #include "kdelibs_export.h"
29 
30 #ifdef Q_MOC_RUN
31 #define Q_OS_UNIX
32 #endif // Q_MOC_RUN
33 
34 #ifdef Q_OS_UNIX
35 
36 class KWinModulePrivate;
37 
56 class KDECORE_EXPORT KWinModule : public TQObject
57 {
58  Q_OBJECT
59 
60 public:
61 
62  enum { INFO_DESKTOP=1,
63  INFO_WINDOWS=2,
64  INFO_ALL=32767 };
92  KWinModule( TQObject* parent, int what );
98  KWinModule( TQObject* parent = 0 );
99 
103  ~KWinModule();
104 
123  const TQValueList<WId>& windows() const;
124 
131  const TQValueList<WId>& stackingOrder() const;
132 
138  bool hasWId(WId id) const;
139 
144  const TQValueList<WId>& systemTrayWindows() const;
145 
150  int currentDesktop() const;
151 
156  int numberOfDesktops() const;
157 
164  TQSize numberOfViewports(int desktop) const;
165 
171  TQPoint currentViewport(int desktop) const;
172 
178  WId activeWindow() const;
179 
187  TQRect workArea( int desktop = - 1 ) const;
188 
189 
200  TQRect workArea( const TQValueList<WId> &excludes, int desktop = -1) const;
201 
207  TQString desktopName( int desktop ) const;
208 
214  void setDesktopName( int desktop, const TQString& name );
215 
220  bool showingDesktop() const;
221 
231  void doNotManage( const TQString& title );
232 
233 
234 signals:
235 
240  void currentDesktopChanged( int desktop);
241 
246  void windowAdded(WId id);
247 
252  void windowRemoved(WId id);
253 
258  void activeWindowChanged(WId id);
259 
263  void desktopNamesChanged();
264 
269  void numberOfDesktopsChanged(int num);
270 
275  void systemTrayWindowAdded(WId id);
276 
281  void systemTrayWindowRemoved(WId id);
282 
286  void workAreaChanged();
287 
293  void strutChanged();
294 
299  void stackingOrderChanged();
300 
301 
312  void windowChanged(WId id, const unsigned long* properties );
313 
323  void windowChanged(WId id, unsigned int properties);
324 
329  void windowChanged(WId id);
330 
335  void showingDesktopChanged( bool showing );
336 
341  void desktopGeometryChanged(int desktop);
342 
347  void currentDesktopViewportChanged(int desktop, const TQPoint& viewport);
348 
349 protected:
350  virtual void connectNotify( const char* signal );
351 
352 private:
353  void init(int);
354 
355  KWinModulePrivate* d;
356 
357  friend class KWinModulePrivate;
358 };
359 
360 #endif //Q_OS_UNIX
361 
362 #endif
KWinModule
The class KWinModule provides information about the state of the window manager as required by window...
Definition: kwinmodule.h:56

kdecore

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

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |