• 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_OS_UNIX
31
32class KWinModulePrivate;
33
52class TDECORE_EXPORT KWinModule : public TQObject
53{
54 TQ_OBJECT
55
56public:
57
58 enum { INFO_DESKTOP=1,
59 INFO_WINDOWS=2,
60 INFO_ALL=32767 };
88 KWinModule( TQObject* parent, int what );
94 KWinModule( TQObject* parent = 0 );
95
99 ~KWinModule();
100
119 const TQValueList<WId>& windows() const;
120
127 const TQValueList<WId>& stackingOrder() const;
128
134 bool hasWId(WId id) const;
135
140 const TQValueList<WId>& systemTrayWindows() const;
141
146 int currentDesktop() const;
147
152 int numberOfDesktops() const;
153
160 TQSize numberOfViewports(int desktop) const;
161
167 TQPoint currentViewport(int desktop) const;
168
174 WId activeWindow() const;
175
183 TQRect workArea( int desktop = - 1 ) const;
184
185
196 TQRect workArea( const TQValueList<WId> &excludes, int desktop = -1) const;
197
203 TQString desktopName( int desktop ) const;
204
210 void setDesktopName( int desktop, const TQString& name );
211
216 bool showingDesktop() const;
217
227 void doNotManage( const TQString& title );
228
229
230signals:
231
236 void currentDesktopChanged( int desktop);
237
242 void windowAdded(WId id);
243
248 void windowRemoved(WId id);
249
254 void activeWindowChanged(WId id);
255
259 void desktopNamesChanged();
260
265 void numberOfDesktopsChanged(int num);
266
271 void systemTrayWindowAdded(WId id);
272
277 void systemTrayWindowRemoved(WId id);
278
282 void workAreaChanged();
283
289 void strutChanged();
290
295 void stackingOrderChanged();
296
297
308 void windowChanged(WId id, const unsigned long* properties );
309
319 void windowChanged(WId id, unsigned int properties);
320
325 void windowChanged(WId id);
326
331 void showingDesktopChanged( bool showing );
332
337 void desktopGeometryChanged(int desktop);
338
343 void currentDesktopViewportChanged(int desktop, const TQPoint& viewport);
344
345protected:
346 virtual void connectNotify( const char* signal );
347
348private:
349 void init(int);
350
351 KWinModulePrivate* d;
352
353 friend class KWinModulePrivate;
354};
355
356#endif //Q_OS_UNIX
357
358#endif
KWinModule
The class KWinModule provides information about the state of the window manager as required by window...
Definition: twinmodule.h:53
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::systemTrayWindows
const TQValueList< WId > & systemTrayWindows() const
Returns a list of the system tray windows.
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::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::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::desktopGeometryChanged
void desktopGeometryChanged(int desktop)
The state of showing the desktop has changed.
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::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::stackingOrder
const TQValueList< WId > & stackingOrder() const
Returns the list of all toplevel windows currently managed by the window manager in the current stack...
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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.