#include <kwinmodule.h>
Signals | |
| void | currentDesktopChanged (int desktop) |
| void | windowAdded (WId id) |
| void | windowRemoved (WId id) |
| void | activeWindowChanged (WId) |
| void | desktopNamesChanged () |
| void | numberOfDesktopsChanged (int num) |
| void | systemTrayWindowAdded (WId id) |
| void | systemTrayWindowRemoved (WId id) |
| void | workAreaChanged () |
| void | strutChanged () |
| void | stackingOrderChanged () |
| void | windowChanged (WId id, unsigned int properties) |
| void | windowChanged (WId id) |
Public Methods | |
| KWinModule (QObject *parent=0) | |
| ~KWinModule () | |
| const QValueList< WId > & | windows () const |
| const QValueList< WId > & | stackingOrder () const |
| bool | hasWId (WId id) const |
| const QValueList< WId > & | systemTrayWindows () const |
| int | currentDesktop () const |
| int | numberOfDesktops () const |
| WId | activeWindow () const |
| QRect | workArea (int desktop=-1) const |
| QRect | workArea (const QValueList< WId > &excludes, int desktop=-1) const |
| QString | desktopName (int desktop) const |
| void | setDesktopName (int desktop, const QString &name) |
| void | doNotManage (const QString &title) |
The class KWinModule provides information about the state of the window manager as required by windowmanager modules. It informs a module about all currently managed windows and changes to them (via Qt signals).
KWinModule uses NETRootInfo internally. Modules written with this class will work fine under any window manager that implements the NET_WM protocol.
There are no methods to manipulate windows. Those are defined in the classes KWin, NETWinInfo and NETRootInfo.
Definition at line 50 of file kwinmodule.h.
|
|
Creates a KWinModule object and connects to the window manager.
|
|
|
Destructor. Internal cleanup, nothing fancy. |
|
|
Returns the currently active window, or 0 if no window is active.
|
|
|
Hint that <Window> is active (= has focus) now.
|
|
|
Returns the current virtual desktop.
|
|
|
Switched to another virtual desktop.
|
|
|
Returns the name of the specified desktop.
|
|
|
Desktops have been renamed. |
|
|
Informs kwin via dcop to not manage a window with the specified Useful for swallowing legacy applications, for example java applets.
|
|
|
Test to see if
|
|
|
Returns the number of virtual desktops.
|
|
|
The number of desktops changed.
|
|
||||||||||||
|
Sets the name of the specified desktop.
|
|
|
Returns the list of all toplevel windows currently managed by the window manager in the current stacking order (from lower to higher). May be useful for pagers.
|
|
|
Emitted when the stacking order of the window changed. The new order can be obtained with stackingOrder(). |
|
|
Something changed with the struts, may or may not have changed the work area. |
|
|
Emitted when a dock window has been added.
|
|
|
Emitted when a dock window has been removed.
|
|
|
Returns a list of the system tray windows.
|
|
|
A window has been added.
|
|
|
The window changed somehow.
|
|
||||||||||||
|
The window changed. The unsigned int parameter contains the NET properties that were modified (see netem_def.h).
|
|
|
A window has been removed.
|
|
|
Returns the list of all toplevel windows currently managed by the window manager in the order of creation. Please do not rely on indexes of this list: Whenever you enter Qt's event loop in your application, it may happen that entries are removed or added. Your module should perhaps work on a copy of this list and verify a window with hasWindow() before any operations. Iteration over this list can be done easily with QValueList<WId>::ConstIterator it; for ( it = module->windows().begin(); it != modules->windows().end(); ++it ) { ... do something here, (*it) is the current WId. }
|
|
||||||||||||
|
Returns the workarea for the specified desktop, or the current work area if no desktop has been specified. Excludes struts of clients in the exclude List.
|
|
|
Returns the workarea for the specified desktop, or the current work area if no desktop has been specified.
|
|
|
The workarea has changed. |
1.2.18