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

tdecore

  • tdecore
twinmodule.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  * twinmodule.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 "tdelibs_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 TDECORE_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: twinmodule.h:57
KWinModule::currentViewport
TQPoint currentViewport(int desktop) const
Returns the current viewport on the given virtual desktop.
KWinModule::numberOfDesktops
int numberOfDesktops() const
Returns the number of virtual desktops.
KWinModule::currentDesktopViewportChanged
void currentDesktopViewportChanged(int desktop, const TQPoint &viewport)
The viewport position has changed.
KWinModule::strutChanged
void strutChanged()
Something changed with the struts, may or may not have changed the work area.
KWinModule::desktopNamesChanged
void desktopNamesChanged()
Desktops have been renamed.
KWinModule::systemTrayWindowRemoved
void systemTrayWindowRemoved(WId id)
Emitted when a dock window has been removed.
KWinModule::workArea
TQRect workArea(int desktop=- 1) const
Returns the workarea for the specified desktop, or the current work area if no desktop has been speci...
KWinModule::windowAdded
void windowAdded(WId id)
A window has been added.
KWinModule::windowChanged
void windowChanged(WId id, unsigned int properties)
KWinModule::activeWindow
WId activeWindow() const
Returns the currently active window, or 0 if no window is active.
KWinModule::systemTrayWindowAdded
void systemTrayWindowAdded(WId id)
Emitted when a dock window has been added.
KWinModule::doNotManage
void doNotManage(const TQString &title)
Informs twin via dcop to not manage a window with the specified title.
KWinModule::showingDesktopChanged
void showingDesktopChanged(bool showing)
The state of showing the desktop has changed.
KWinModule::windowRemoved
void windowRemoved(WId id)
A window has been removed.
KWinModule::~KWinModule
~KWinModule()
Destructor.
KWinModule::workAreaChanged
void workAreaChanged()
The workarea has changed.
KWinModule::KWinModule
KWinModule(TQObject *parent, int what)
Creates a KWinModule object and connects to the window manager.
KWinModule::windowChanged
void windowChanged(WId id)
The window changed somehow.
KWinModule::workArea
TQRect workArea(const TQValueList< WId > &excludes, int desktop=-1) const
Returns the workarea for the specified desktop, or the current work area if no desktop has been speci...
KWinModule::systemTrayWindows
const TQValueList< WId > & systemTrayWindows() const
Returns a list of the system tray windows.
KWinModule::desktopGeometryChanged
void desktopGeometryChanged(int desktop)
The state of showing the desktop has changed.
KWinModule::stackingOrder
const TQValueList< WId > & stackingOrder() const
Returns the list of all toplevel windows currently managed by the window manager in the current stack...
KWinModule::activeWindowChanged
void activeWindowChanged(WId id)
Hint that <Window> is active (= has focus) now.
KWinModule::showingDesktop
bool showingDesktop() const
Returns the state of showing the desktop.
KWinModule::windows
const TQValueList< WId > & windows() const
Returns the list of all toplevel windows currently managed by the window manager in the order of crea...
KWinModule::windowChanged
void windowChanged(WId id, const unsigned long *properties)
The window changed.
KWinModule::hasWId
bool hasWId(WId id) const
Test to see if id still managed at present.
KWinModule::currentDesktop
int currentDesktop() const
Returns the current virtual desktop.
KWinModule::numberOfDesktopsChanged
void numberOfDesktopsChanged(int num)
The number of desktops changed.
KWinModule::KWinModule
KWinModule(TQObject *parent=0)
Creates a KWinModule object and connects to the window manager.
KWinModule::stackingOrderChanged
void stackingOrderChanged()
Emitted when the stacking order of the window changed.
KWinModule::setDesktopName
void setDesktopName(int desktop, const TQString &name)
Sets the name of the specified desktop.
KWinModule::numberOfViewports
TQSize numberOfViewports(int desktop) const
Returns the number of viewports in x and y direction on the virtual desktop.
KWinModule::currentDesktopChanged
void currentDesktopChanged(int desktop)
Switched to another virtual desktop.
KWinModule::desktopName
TQString desktopName(int desktop) const
Returns the name of the specified desktop.

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.1
This website is maintained by Timothy Pearson.