<paramname="old_desk"type="integer">The number of the virtual desktop the user switched from.</param>
<desc>Emitted when the user switches from a virtual desktop to another.</desc>
</event>
<methodname="getAllClients">
<returntype="Array(client)"></return>
<paramname="desktop_no"type="integer">The desktop number belonging to which the clients are to be fetched.</param>
<desc>Gets all clients on the virtual desktop desktop_no. If no desktop number is specified then it fetches all the clients. To specifically isolate clients which are on 'All desktops', set the desktop_no parameter to -1.</desc>
<paramname="moved_client"type="client">The client which was moved from desktop old_desk to the new one</param>
<paramname="old_desk"type="integer">The previous desktop on which the client was present</param>
<desc>Emitted whenever a client is moved across virtual desktops. The client's previous desktop is available through the old_desk parameter, whereas the current desktop can be fetched using moved_client.desktop</desc>
</event>
<propertyname="currentDesktop"type="GO">
<returntype="integer"></return>
<desc>Returns the current desktop number of the workspace.</desc>
<paramname="added_client"type="client">The client which was added.</param>
<desc>Emitted whenever a new client is added to the workspace. This generally occurs when a new window is opened which includes dialog boxes, windows etc. However, it is NOT emitted for unmanaged clients like the Alt+Tab switcher.</desc>
<paramname="managing_client"type="client">The client which is being managed.</param>
<desc>Emitted whenever a client is being managed by the KWin subsystem. The difference between workspace.clientManaging and workspace.clientAdded is that clientManaging is emitted BEFORE clientAdded. Also, if KWin is restarted with a list of clients C, then the clientManaging event will be emitted for every client in C, but clientAdded will not.</desc>
<paramname="maximized_client"type="client">The client which was maximized (in a certain orientation).</param>
<paramname="horizontally"type="boolean">(true) if the client was maximized horizontally, (false) otherwise.</param>
<paramname="vertically"type="boolean">(true) if the client was maximized vertically, (false) otherwise.</param>
<desc>Emitted whenever a client is maximized in a particular orientation. The orientation i.e. the rectangular direction in which the client was specified to occupy the entire available space is specified by the two parameters horizontally and vertically. If both are true, the client was maximized fully i.e. asked to occupy the entire workspace are available.</desc>
<paramname="killwindow_client"type="client">The client handle to the kill window that was called.</param>
<desc>Emitted whenever the user requests a Kill Window [generally using the Ctrl+Esc combination]. The parameter killwindow_client is not completely safe and may return kill windows out of order of invocation. This is just a fancy function, avoid using. Instead, use workspace.clientAdded and filter for incoming Kill Windows.</desc>
<paramname="activated_client"type="client">The client which was activated (or received focus).</param>
<desc>Emitted whenever a client is given focus or 'activated'.</desc>
</event>
<methodname="dimensions">
<returntype="qsize"></return>
<desc>Returns the dimensions of the workspace in pixels.</desc>
</method>
<methodname="desktopGridSize">
<returntype="qsize"></return>
<desc>Returns the desktop size in grid units. In essence, it returns the order of a rectangular matrix, where each element is a virtual desktop and the rows and columns specify the number of virtual desktops and the way of arrangement.</desc>
<paramname="fss_set"type="boolean">(true) if the client was switched to full screen mode, (false) if it was switched from full screen mode.</param>
<paramname="fss_client"type="client">The client which was set/unset to fullscreen.</param>
<desc>Emitted whenever a client is set to full screen or unset. The fss_set parameter can be used to determine whether the client was set or unset.</desc>
</event>
<methodname="activeClient">
<returntype="client"></return>
<desc>Returns the client which currently has focus.</desc>
</method>
<methodname="clientGroups">
<returntype="Array(clientgroup)"></return>
<desc>Returns an array of all the ClientGroups from the current workspace.</desc>
<desc>Returns the x co-ordinate of the toplevel client (or the client).</desc>
</method>
<methodname="y">
<returntype="integer"></return>
<desc>Returns the y co-ordinate of the toplevel client (or the client).</desc>
</method>
<methodname="width">
<returntype="integer"></return>
<desc>Returns the width of the toplevel client (or the client).</desc>
</method>
<methodname="height">
<returntype="integer"></return>
<desc>Returns the height of the toplevel client (or the client).</desc>
</method>
<methodname="size">
<returntype="qsize"></return>
<desc>Returns the size of the toplevel client (or the client).</desc>
</method>
<methodname="pos">
<returntype="qpoint"></return>
<desc>Returns the position of the toplevel client (or the client).</desc>
</method>
<methodname="opacity">
<returntype="decimal"></return>
<desc>Returns the opacity (or 1 - transperency) of the toplevel client (or the client).</desc>
</method>
<methodname="hasAlpha">
<returntype="bool"></return>
<desc>Returns (true) if the client can be made translucent i.e. opacity can be set to values other than 0 or 1, (false) otherwise. NOTE: If compositing is OFF, then clients may still show that translucency is possible, but translucency is not possible without compositing being ON.</desc>
</method>
<methodname="setOpacity">
<paramname="opacity_v"type="decimal">The opacity to be set (on a scale of 0-1).</param>
<desc>Sets the opacity of the client to opacity_v or sets transperency to (1 - opacity_v). NOTE: If compositing is OFF, this function has no effect for any values between 0 and 1 (exclusive).</desc>
<desc>Emitted whenever a client is minimized. Equivalent to workspace.clientMinimized, but for a specific client. Use wherever possible instead of workspace.clientMinimzed to improve performance.</desc>
<paramname="horizontally"type="boolean">(true) if the client was maximized horizontally, (false) otherwise.</param>
<paramname="vertically"type="boolean">(true) if the client was maximized vertically, (false) otherwise.</param>
<desc>Emitted when the client is maximized in a particular orientation. The orientation i.e. the rectangular direction in which the client was specified to occupy the entire available space is specified by the two parameters horizontally and vertically. If both are true, the client was maximized fully i.e. asked to occupy the entire workspace are available. Equivalent to workspace.clientMaximizeSet, but for a specific client. Use wherever possible instead of workspace.clientMaximizeSet to improve performance.</desc>
<desc>Emitted whenever the client is activated (or gets focus). Equivalent to workspace.clientActivated but for a specific client. Use wherever possible instead of workspace.clientActivated to improve performance.</desc>
</event>
<methodname="move"vparamstyle="true">
<paramset>
<paramname="location"type="qpoint">The (x, y) point to where the top left corner of the client must be moved to keeping the current height and width same.</param>
<paramname="emitjs"type="boolean">EmitJS value (defaults to true).</param>
</paramset>
<paramset>
<paramname="x"type="integer">The x co-ordinate value of the point to where the top left corner of the client must be moved to keeping the current height and width same.</param>
<paramname="x"type="integer">The y co-ordinate value of the point to where the top left corner of the client must be moved to keeping the current height and width same.</param>
<paramname="emitjs"type="boolean">EmitJS value (defaults to true).</param>
</paramset>
<desc>Moves the client to the specified location keeping the height and width of the client same.</desc>
</method>
<methodname="resize"vparamstyle="true">
<paramset>
<paramname="size"type="qsize">The size to which the client is to be resized.</param>
<paramname="emitJS"type="boolean">EmitJS value (defaults to true).</param>
</paramset>
<paramset>
<paramname="w"type="integer">New width for the client.</param>
<paramname="h"type="integer">New height for the client.</param>
<paramname="emitJS"type="boolean">EmitJS value (defaults to true).</param>
</paramset>
<desc>Resizes the client to the specified size without changing its position.</desc>
</method>
<methodname="setGeometry"vparamstyle="true">
<paramset>
<paramname="geometry"type="qrect">The new geometry which is to be set for the client.</param>
<paramname="emitJS"type="boolean">EmitJS value (defaults to true).</param>
</paramset>
<paramset>
<paramname="x"type="integer">The x co-ordinate of the new geometry.</param>
<paramname="y"type="integer">The y co-ordinate of the new geometry.</param>
<paramname="w"type="integer">The width of the new geometry.</param>
<paramname="h"type="integer">The height of the new geometry.</param>
</paramset>
<desc>Sets the geometry of the client i.e. sets is size and location according to the provided parameters.</desc>
</method>
<methodname="getWindowInfo">
<returntype="windowinfo"></return>
<desc>Returns a windowinfo object which can be used to get further information about the client. Wherever possible, directly use the client properties than calling for a windowinfo object. NOTE: The windowinfo object is a 'snapshot' object and hence the data provided by it is not modified when the properties of the client are changed.</desc>
</method>
<methodname="isTransient">
<returntype="boolean"></return>
<desc>Returns (true) is 'client' is transient, (false) otherwise.</desc>
</method>
<methodname="isTransientFor">
<returntype="client"></return>
<desc>If the given client is transient, returns it's parent client, otherwise returns an undefined scriptvalue.</desc>
</method>
<methodname="activate">
<desc><strong>Attempt</strong> to activate (focus) the client. By attempt, it means that focus stealing prevention still is activated and the rules for activation are in place. Hence, the client actually may nor may not be activated.</desc>
</method>
<methodname="setCaption">
<paramname="caption_string"type="string">The caption to be set for the specified.</param>
<desc>Sets the caption for the specified client to caption_string.</desc>
</method>
<methodname="unminimize">
<desc>Unminimizes (or restores) the given client.</desc>
<desc>Emitted whenever the given client is unminimized. Equivalent of workspace.clientUnminimzed but for a specific client. Use wherever possible instead of workspace.clientUnminimized to improve performance.</desc>
</event>
<aliasname="restored"of="unminimized"></alias>
<methodname="setFullScreen">
<paramtype="fss_set">If (true), then the client is set to full screen or else, it is unset from fullscreen mode. If no parameter is provided, it toggles the full screen state.</param>
<desc>Sets the client to or from full screen mode.</desc>
<desc>Returns (true) if the client can be closed by user action (or any other action other than the system or the application itself), (false) otherwise.</desc>
<desc>Returns (true) if the client can be set to fullscreen mode, (false) otherwise.</desc>
</method>
<methodname="isNormal">
<returntype="boolean"></return>
<desc>Returns (true) if the window is 'normal', (false) otherwise. A normal window is a window which has a border, can be moved by the user, can be closed, etc.</desc>
</method>
<methodname="keepAbove">
<returntype="boolean"></return>
<desc>Returns (true) if 'Keep Above Others' has been set on the client, (false) otherwise.</desc>
</method>
<methodname="keepBelow">
<returntype="boolean"></return>
<desc>Returns (true) if 'Keep Below Others' has been set on the client, (false) otherwise.</desc>
<paramname="fss_set"type="boolean">(true) if the client was set to full screen mode, (false) if the client was set from full screen mode.</param>
<desc>Emitted whenever the client's fullscreen mode is toggled. fss_set specifies whether the client was set to or from fullscreen mode.</desc>
</event>
<methodname="desktop">
<returntype="integer"></return>
<desc>Returns the desktop number that the client is on. If it is on all desktops, it returns -1.</desc>
</method>
</class>
<classname="clientgroup"type="instantiable">
<methodname="ClientGroup"constructor="true">
<paramname="seed_client"type="client">The client to be added to the newly formed clientgroup. This is a mandatory argument for the creation of a new clientgroup object.</param>
<desc>Creates a new clientgroup object. A clientgroup in essence refers to a group of tabbed clients and an object refers to a specific group of such tabbed clients. It returns a clientgroup object which can be then manipulated using the various accessor functions.</desc>
</method>
<methodname="add">
<paramname="new_client"type="client">A client object to be added to the clientgroup.</param>
<paramname="beforeClient"type="integer">An index as to where the client is to be added to the clientgroup. It is an optional argument and if not specified, it will be added at the last position in the clientgroup.</param>
<paramname="becomeVisible"type="boolean">If (true), makes the added client visible.</param>
<desc>Adds new_client to the clientgroup at the index specified by beforeClient and if becomeVisible is true, makes it visible.</desc>
</method>
<methodname="remove"vparamstyle="true">
<paramset>
<paramname="index"type="integer">The client index which is to be removed.</param>
<paramname="set_geom"type="qrect">The geometry to be set after removeal. This parameter is optional.</param>
</paramset>
<paramset>
<paramname="rem_client"type="client">The client which is to be removed.</param>
<paramname="set_geom"type="qrect">The geometry to be set after removal.</param>
</paramset>
<desc>Removes the client from the clientgroup and then sets it's geometry according to set_geom. This parameter is optional.</desc>
</method>
<methodname="clients">
<returntype="Array(client)"></return>
<desc>Returns an array of all the member clients of the clientgroup.</desc>
</method>
<methodname="contains">
<returntype="boolean"></return>
<paramname="needle_client"type="client">The client to be searched for</param>
<desc>Returns (true) if needle_client is a member of the clientgroup, (false) otherwise.</desc>
</method>
<methodname="indexOf">
<returntype="integer"></return>
<paramname="needle_client"type="client">The client whose index is to be found</param>
<desc>Searches for needle_client in the clientgroup and returns the position at which it exists. If needle_client is not found, then it returns -1.</desc>
</method>
<methodname="move"vparamstyle="true">
<paramset>
<paramname="index_a"type="integer">The index of the client to be moved.</param>
<paramname="index_b"type="integer">The index of the position to move the client to.</param>
</paramset>
<paramset>
<paramname="move_client"type="integer">The client to be moved.</param>
<paramname="index"type="integer">The index of the position to move the client to.</param>
</paramset>
<paramset>
<paramname="move_client"type="integer">The client to be moved.</param>
<paramname="before_client"type="integer">The client before which the client is to moved.</param>
</paramset>
<paramset>
<paramname="index_a"type="integer">The index of the client to be moved.</param>
<paramname="before_client"type="integer">The client before which the client is to moved.</param>
</paramset>
<desc>Move a client within the group. Accepts move(client, client), move(index, index), move(index, client), move(client, index). All calls except move(client, client) are eventually mapped to move(index, index) using indexOf(client)</desc>
</method>
<methodname="removeAll">
<desc>Removes all the clients from the clientgroup i.e. completely disassembles the clientgroup into its proponents.</desc>
</method>
<methodname="closeAll">
<desc>Closes all the clients presents in the clientgroup.</desc>
</method>
<methodname="minSize">
<returntype="qsize"></return>
<desc>Returns the minimum size acceptable for the clientgroup computed from the minimum sizes of all its present members.</desc>
</method>
<methodname="maxSize">
<returntype="qsize"></return>
<desc>Returns the maximum size acceptable for the clientgroup computed from the minimum sizes of all its present members.</desc>
</method>
</class>
<classname="windowinfo"type="floating">
<propertyname="isValid"type="GO">
<returntype="boolean"></return>
<desc>Returns (true) if the client is valid, (false) otherwise.</desc>
</property>
<propertyname="visibleName"type="GO">
<returntype="string"></return>
<desc>Returns the visible name of the client.</desc>
</property>
<propertyname="isMinimized"type="GO">
<returntype="boolean"></return>
<desc>Returns (true) if client is minimized. Redundant with client.isMinimized. For client, the subclass property is called, not the toplevel one.</desc>
</property>
<propertyname="state"type="GO">
<returntype="integer"></return>
<desc>Returns an integeral state for the client. Prefer other methods like isShaded, isFullScreenSet etc. over this.</desc>
</property>
<propertyname="windowRole"type="GO">
<returntype="string"></return>
<desc>Returns the window role of the toplevel client.</desc>
</property>
<propertyname="windowClassClass"type="GO">
<returntype="string"></return>
<desc>Returns the windowclass class of the client.</desc>
</property>
<propertyname="windowClassName"type="GO">
<returntype="string"></return>
<desc>Returns the windowclass name of the client.</desc>
</property>
</class>
<classname="config"type="singleton">
<propertyname="loaded"type="GO">
<returntype="boolean"></return>
<desc>Returns (true) if a configuration file was found and loaded, (false) otherwise.</desc>
</property>
<methodname="exists">
<paramname="config_key"type="string">The configuration key to be seeked.</param>
<desc>Searches for config_key in the configuration array and returns (true) if a corresponding value exists, (false) otherwise.</desc>
</method>
<methodname="get"vparamstyle="true">
<paramset>
</paramset>
<paramset>
<paramname="key1, key2 ... keyN"type="string">A list of keys to search the values for.</param>
</paramset>
<paramset>
<paramname="key"type="string">The key to search the value for.</param>
</paramset>
<paramset>
<paramname="keyArray"type="Array(string)">An array of keys to search the corresponding values for.</param>
<paramname="showNonAssoc"type="boolean">If (true) causes the function to return an integer-indexed array, otherwise returns an associative array in the form ["key" : "value"]. This parameter is optional, defaults to false</param>
</paramset>
<desc>If called without parameters, returns an associative array in the format ["key" : "value"] of all available key value pairs. If only a single key is requested for (passing 1 string parameter), then the corresponding value is returned and NOT an array. If multiple keys are provided as multiple arguments, an associative array is returned. If multiple keys (or a single) key is provided as an Array, then an associative array is present (if showNonAssoc is false or it is not specified), otherwise returns an integer indexed array.</desc>