Mgraesslin (Talk | contribs) (→KWin::ClientGroup) |
Mgraesslin (Talk | contribs) (update Workspace) |
||
| Line 22: | Line 22: | ||
=== Signals === | === Signals === | ||
| − | * '''desktopPresenceChanged(KWin::Client *, int)''' | + | * '''desktopPresenceChanged(KWin::Client *client, int desktop)''' |
| − | * '''currentDesktopChanged(int)''' | + | * '''currentDesktopChanged(int desktop)''' |
| − | * '''clientAdded(KWin::Client *)''' | + | * '''clientAdded(KWin::Client *client)''' |
| − | * '''clientRemoved(KWin::Client *)''' | + | * '''clientRemoved(KWin::Client *client)''' |
| − | * '''clientManaging(KWin::Client *)''' | + | * '''clientManaging(KWin::Client *client)''' |
| − | * '''clientMinimized(KWin::Client *)''' | + | * '''clientMinimized(KWin::Client *client)''' |
| − | * '''clientUnminimized(KWin::Client *)''' | + | * '''clientUnminimized(KWin::Client *client)''' |
| − | * '''clientRestored(KWin::Client *)''' | + | * '''clientRestored(KWin::Client *client)''' |
| − | * '''clientMaximizeSet(KWin::Client *, bool, bool)''' | + | * '''clientMaximizeSet(KWin::Client *client, bool h, bool v)''' |
| − | * '''killWindowCalled(KWin::Client *)''' | + | * '''killWindowCalled(KWin::Client *client)''' |
| − | * '''clientActivated(KWin::Client *)''' | + | * '''clientActivated(KWin::Client *client)''' |
| − | * '''clientFullScreenSet(KWin::Client *, bool, bool)''' | + | * '''clientFullScreenSet(KWin::Client *client, bool fullScreen, bool user)''' |
| − | * '''clientSetKeepAbove(KWin::Client *, bool)''' | + | * '''clientSetKeepAbove(KWin::Client *client, bool keepAbove)''' |
* '''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. | ||
| + | * '''clientDemandsAttentionChanged(KWin::Client *client, bool set)''': The demands attention state for Client c changed to set. c The Client for which demands attention changed set New value of demands attention | ||
| + | * '''numberScreensChanged(int count)''': Signal emitted when the number of screens changes. count The new number of screens | ||
=== Functions === | === Functions === | ||
| Line 91: | Line 93: | ||
* '''slotWindowToDesktopUp()''' | * '''slotWindowToDesktopUp()''' | ||
* '''slotWindowToDesktopDown()''' | * '''slotWindowToDesktopDown()''' | ||
| − | * ''Q_INVOKABLE QList< KWin::Client * >'' '''clientList() const ''' | + | * ''Q_INVOKABLE QList< QObject * >'' '''getClientList() const ''': List of Clients currently managed by KWin. Use this method in QML scripts. |
| + | * ''Q_INVOKABLE QList< KWin::Client * >'' '''clientList() const ''': List of Clients currently managed by KWin. Use this method in JavaScript scripts. | ||
* ''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 KWin::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'' '''desktopName(int desktop) const ''': Returns the name for the given desktop. | ||
* ''QString'' '''supportInformation() const ''': Provides support information about the currently running KWin instance. | * ''QString'' '''supportInformation() const ''': Provides support information about the currently running KWin instance. | ||
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