Mgraesslin (Talk | contribs) (Updated workspace docu) |
Mgraesslin (Talk | contribs) (→Workspace) |
||
| Line 9: | Line 9: | ||
* ''int'' '''workspaceWidth''' | * ''int'' '''workspaceWidth''' | ||
* ''int'' '''workspaceHeight''' | * ''int'' '''workspaceHeight''' | ||
| − | * ''QSize'' '''workspaceSize | + | * ''QSize'' '''workspaceSize''' |
* ''QSize'' '''displaySize''': The same of the display, that is all screens. | * ''QSize'' '''displaySize''': The same of the display, that is all screens. | ||
* ''int'' '''displayWidth''': The width of the display, that is width of all combined screens. | * ''int'' '''displayWidth''': The width of the display, that is width of all combined screens. | ||
* ''int'' '''displayHeight''': The height of the display, that is height of all combined screens. | * ''int'' '''displayHeight''': The height of the display, that is height of all combined screens. | ||
| + | * ''int'' '''activeScreen''' | ||
| + | * ''int'' '''numScreens''' | ||
=== Read-write Properties === | === Read-write Properties === | ||
* ''int'' '''currentDesktop''' | * ''int'' '''currentDesktop''' | ||
| − | * ''KWin::Client'' '''activeClient | + | * ''KWin::Client'' '''activeClient''' |
* ''int'' '''desktops''': The number of desktops currently used. Minimum number of desktops is 1, maximum 20. | * ''int'' '''desktops''': The number of desktops currently used. Minimum number of desktops is 1, maximum 20. | ||
=== Signals === | === Signals === | ||
| Line 32: | Line 34: | ||
* '''clientActivated(KWin::Client *)''' | * '''clientActivated(KWin::Client *)''' | ||
* '''clientFullScreenSet(KWin::Client *, bool, bool)''' | * '''clientFullScreenSet(KWin::Client *, bool, bool)''' | ||
| − | * '''clientSetKeepAbove(KWin::Client *, bool) | + | * '''clientSetKeepAbove(KWin::Client *, bool)''' |
* '''numberDesktopsChanged(int oldNumberOfDesktops)''': Signal emitted whenever the number of desktops changed. To get the current number of desktops use the property desktops. oldNumberOfDesktops The previous number of desktops. | * '''numberDesktopsChanged(int oldNumberOfDesktops)''': Signal emitted whenever the number of desktops changed. To get the current number of desktops use the property desktops. oldNumberOfDesktops The previous number of desktops. | ||
=== Functions === | === Functions === | ||
| − | + | ||
* '''slotSwitchDesktopNext()''' | * '''slotSwitchDesktopNext()''' | ||
* '''slotSwitchDesktopPrevious()''' | * '''slotSwitchDesktopPrevious()''' | ||
| Line 89: | Line 91: | ||
* '''slotWindowToDesktopUp()''' | * '''slotWindowToDesktopUp()''' | ||
* '''slotWindowToDesktopDown()''' | * '''slotWindowToDesktopDown()''' | ||
| − | |||
| − | |||
| − | |||
* ''Q_INVOKABLE QList< KWin::Client * >'' '''clientList() const ''' | * ''Q_INVOKABLE QList< KWin::Client * >'' '''clientList() const ''' | ||
* ''QRect'' '''clientArea(ClientAreaOption option, int screen, int desktop) const ''': Returns the geometry a Client can use with the specified option. This method should be preferred over other methods providing screen sizes as the various options take constraints such as struts set on panels into account. This method is also multi screen aware, but there are also options to get full areas. option The type of area which should be considered screen The screen for which the area should be considered desktop The desktop for which the area should be considered, in general there should not be a difference The specified screen geometry | * ''QRect'' '''clientArea(ClientAreaOption option, int screen, int desktop) const ''': Returns the geometry a Client can use with the specified option. This method should be preferred over other methods providing screen sizes as the various options take constraints such as struts set on panels into account. This method is also multi screen aware, but there are also options to get full areas. option The type of area which should be considered screen The screen for which the area should be considered desktop The desktop for which the area should be considered, in general there should not be a difference The specified screen geometry | ||
* ''QRect'' '''clientArea(ClientAreaOption option, const QPoint &point, int desktop) const ''': Overloaded method for convenience. option The type of area which should be considered point The coordinates which have to be included in the area desktop The desktop for which the area should be considered, in general there should not be a difference The specified screen geometry | * ''QRect'' '''clientArea(ClientAreaOption option, const QPoint &point, int desktop) const ''': Overloaded method for convenience. option The type of area which should be considered point The coordinates which have to be included in the area desktop The desktop for which the area should be considered, in general there should not be a difference The specified screen geometry | ||
* ''QRect'' '''clientArea(ClientAreaOption option, const Client *client) const ''': Overloaded method for convenience. client The Client for which the area should be retrieved The specified screen geometry | * ''QRect'' '''clientArea(ClientAreaOption option, const Client *client) const ''': Overloaded method for convenience. client The Client for which the area should be retrieved The specified screen geometry | ||
| + | * ''QString'' '''desktopName(int desktop) const ''': Returns the name for the given desktop. | ||
| + | * ''QString'' '''supportInformation() const ''': Provides support information about the currently running KWin instance. | ||
== KWin::Toplevel == | == KWin::Toplevel == | ||
Contents |
Workspace is the global object injected into each script as workspace. It provides access to core functionality of the window manager.
Toplevel is an abstract base class for all "Windows". You cannot use it directly, but everything available on Toplevel is available on Client, too.
The Client class encapsulates a window decoration frame. Inherits: KWin::Toplevel