Mgraesslin (Talk | contribs) (Global) |
Mgraesslin (Talk | contribs) |
||
| Line 11: | Line 11: | ||
=== Functions === | === Functions === | ||
| − | * | + | * '''print(QVariant ... values)''': Prints all provided values to kDebug and as a D-Bus signal |
* ''QVariant'' '''readConfig(QString key, QVariant defaultValue = QVariant())''': Reads the config value for key in the Script's configuration with the optional default value. If not providing a default value and no value stored in the configuration an undefined value is returned. | * ''QVariant'' '''readConfig(QString key, QVariant defaultValue = QVariant())''': Reads the config value for key in the Script's configuration with the optional default value. If not providing a default value and no value stored in the configuration an undefined value is returned. | ||
* ''bool'' '''registerShortcut(QString title, QString text, QString keySequence, QScriptValue callback)''': Registers keySequence as a global shortcut. When the shortcut is invoked the callback will be called. Title and text are used to name the shortcut and make it available to the global shortcut configuration module. | * ''bool'' '''registerShortcut(QString title, QString text, QString keySequence, QScriptValue callback)''': Registers keySequence as a global shortcut. When the shortcut is invoked the callback will be called. Title and text are used to name the shortcut and make it available to the global shortcut configuration module. | ||
| − | == | + | |
| − | + | == KWin::WorkspaceWrapper == | |
=== Read-only Properties === | === Read-only Properties === | ||
| Line 54: | Line 54: | ||
* '''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 | * '''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 | * '''numberScreensChanged(int count)''': Signal emitted when the number of screens changes. count The new number of screens | ||
| + | * '''screenResized(int screen)''': This signal is emitted when the size of screen changes. Don't forget to fetch an updated client area. | ||
=== Functions === | === Functions === | ||
| Line 109: | Line 110: | ||
* '''slotWindowToDesktopUp()''' | * '''slotWindowToDesktopUp()''' | ||
* '''slotWindowToDesktopDown()''' | * '''slotWindowToDesktopDown()''' | ||
| − | * '' | + | * '''showOutline(const QRect &geometry)''': Shows an outline at the specified geometry. If an outline is already shown the outline is moved to the new position. Use to remove the outline again. |
| − | * '' | + | * '''showOutline(int x, int y, int width, int height)''': Overloaded method for convenience. |
| + | * '''hideOutline()''': Hides the outline previously shown by showOutline. | ||
| + | * ''QList< KWin::Client * >'' '''clientList() const ''': List of Clients currently managed by KWin. | ||
* ''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 & | + | * ''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 KWin::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. | ||
| + | |||
== KWin::Options == | == KWin::Options == | ||
| − | |||
'''Inherits:''' KDecorationOptions | '''Inherits:''' KDecorationOptions | ||
=== Read-only Properties === | === Read-only Properties === | ||
| + | |||
| + | * ''bool'' '''focusPolicyIsReasonable''' | ||
| + | * ''bool'' '''electricBorders''': Whether electric borders are enabled. With electric borders you can change desktop by moving the mouse pointer towards the edge of the screen | ||
| + | === Read-write Properties === | ||
* ''FocusPolicy'' '''focusPolicy''' | * ''FocusPolicy'' '''focusPolicy''' | ||
| Line 131: | Line 138: | ||
* ''bool'' '''shadeHover''': Whether shade hover is enabled or not | * ''bool'' '''shadeHover''': Whether shade hover is enabled or not | ||
* ''int'' '''shadeHoverInterval''': shade hover interval | * ''int'' '''shadeHoverInterval''': shade hover interval | ||
| + | * ''bool'' '''tiling''': Whether tiling is enabled or not | ||
* ''int'' '''tilingLayout''' | * ''int'' '''tilingLayout''' | ||
* ''int'' '''tilingRaisePolicy''': Tiling window raise policy. | * ''int'' '''tilingRaisePolicy''': Tiling window raise policy. | ||
| Line 136: | Line 144: | ||
* ''bool'' '''activeMouseScreen''': whether active Xinerama screen is the one with mouse (or with the active window) | * ''bool'' '''activeMouseScreen''': whether active Xinerama screen is the one with mouse (or with the active window) | ||
* ''int'' '''placement''' | * ''int'' '''placement''' | ||
| − | |||
* ''int'' '''borderSnapZone''': the size of the zone that triggers snapping on desktop borders | * ''int'' '''borderSnapZone''': the size of the zone that triggers snapping on desktop borders | ||
* ''int'' '''windowSnapZone''': the size of the zone that triggers snapping with other windows | * ''int'' '''windowSnapZone''': the size of the zone that triggers snapping with other windows | ||
| Line 161: | Line 168: | ||
* ''uint'' '''keyCmdAllModKey''' | * ''uint'' '''keyCmdAllModKey''' | ||
* ''bool'' '''showGeometryTip''': whether the Geometry Tip should be shown during a window move/resize. | * ''bool'' '''showGeometryTip''': whether the Geometry Tip should be shown during a window move/resize. | ||
| − | |||
* ''int'' '''electricBorderDelay''': the activation delay for electric borders in milliseconds. | * ''int'' '''electricBorderDelay''': the activation delay for electric borders in milliseconds. | ||
* ''int'' '''electricBorderCooldown''': the trigger cooldown for electric borders in milliseconds. | * ''int'' '''electricBorderCooldown''': the trigger cooldown for electric borders in milliseconds. | ||
| Line 175: | Line 181: | ||
* ''int'' '''compositingMode''' | * ''int'' '''compositingMode''' | ||
* ''bool'' '''useCompositing''' | * ''bool'' '''useCompositing''' | ||
| + | * ''bool'' '''compositingInitialized''' | ||
* ''int'' '''hiddenPreviews''' | * ''int'' '''hiddenPreviews''' | ||
* ''bool'' '''unredirectFullscreen''' | * ''bool'' '''unredirectFullscreen''' | ||
| Line 184: | Line 191: | ||
* ''bool'' '''glDirect''' | * ''bool'' '''glDirect''' | ||
* ''bool'' '''glStrictBinding''' | * ''bool'' '''glStrictBinding''' | ||
| − | |||
| − | |||
| − | |||
| − | |||
=== Signals === | === Signals === | ||
* '''configChanged()''' | * '''configChanged()''' | ||
| + | * '''focusPolicyChanged()''' | ||
| + | * '''nextFocusPrefersMouseChanged()''' | ||
| + | * '''clickRaiseChanged()''' | ||
| + | * '''autoRaiseChanged()''' | ||
| + | * '''autoRaiseIntervalChanged()''' | ||
| + | * '''delayFocusIntervalChanged()''' | ||
| + | * '''shadeHoverChanged()''' | ||
| + | * '''shadeHoverIntervalChanged()''' | ||
| + | * '''tilingChanged()''' | ||
| + | * '''tilingLayoutChanged()''' | ||
| + | * '''tilingRaisePolicyChanged()''' | ||
| + | * '''separateScreenFocusChanged()''' | ||
| + | * '''activeMouseScreenChanged()''' | ||
| + | * '''placementChanged()''' | ||
| + | * '''borderSnapZoneChanged()''' | ||
| + | * '''windowSnapZoneChanged()''' | ||
| + | * '''centerSnapZoneChanged()''' | ||
| + | * '''snapOnlyWhenOverlappingChanged()''' | ||
| + | * '''showDesktopIsMinimizeAllChanged()''' | ||
| + | * '''rollOverDesktopsChanged()''' | ||
| + | * '''focusStealingPreventionLevelChanged()''' | ||
| + | * '''legacyFullscreenSupportChanged()''' | ||
| + | * '''operationTitlebarDblClickChanged()''' | ||
| + | * '''commandActiveTitlebar1Changed()''' | ||
| + | * '''commandActiveTitlebar2Changed()''' | ||
| + | * '''commandActiveTitlebar3Changed()''' | ||
| + | * '''commandInactiveTitlebar1Changed()''' | ||
| + | * '''commandInactiveTitlebar2Changed()''' | ||
| + | * '''commandInactiveTitlebar3Changed()''' | ||
| + | * '''commandWindow1Changed()''' | ||
| + | * '''commandWindow2Changed()''' | ||
| + | * '''commandWindow3Changed()''' | ||
| + | * '''commandWindowWheelChanged()''' | ||
| + | * '''commandAll1Changed()''' | ||
| + | * '''commandAll2Changed()''' | ||
| + | * '''commandAll3Changed()''' | ||
| + | * '''keyCmdAllModKeyChanged()''' | ||
| + | * '''showGeometryTipChanged()''' | ||
| + | * '''electricBordersChanged()''' | ||
| + | * '''electricBorderDelayChanged()''' | ||
| + | * '''electricBorderCooldownChanged()''' | ||
| + | * '''electricBorderPushbackPixelsChanged()''' | ||
| + | * '''electricBorderMaximizeChanged()''' | ||
| + | * '''electricBorderTilingChanged()''' | ||
| + | * '''borderlessMaximizedWindowsChanged()''' | ||
| + | * '''killPingTimeoutChanged()''' | ||
| + | * '''hideUtilityWindowsForInactiveChanged()''' | ||
| + | * '''inactiveTabsSkipTaskbarChanged()''' | ||
| + | * '''autogroupSimilarWindowsChanged()''' | ||
| + | * '''autogroupInForegroundChanged()''' | ||
| + | * '''compositingModeChanged()''' | ||
| + | * '''useCompositingChanged()''' | ||
| + | * '''compositingInitializedChanged()''' | ||
| + | * '''hiddenPreviewsChanged()''' | ||
| + | * '''unredirectFullscreenChanged()''' | ||
| + | * '''glSmoothScaleChanged()''' | ||
| + | * '''glVSyncChanged()''' | ||
| + | * '''xrenderSmoothScaleChanged()''' | ||
| + | * '''maxFpsIntervalChanged()''' | ||
| + | * '''refreshRateChanged()''' | ||
| + | * '''glDirectChanged()''' | ||
| + | * '''glStrictBindingChanged()''' | ||
| + | === Functions === | ||
| + | |||
| + | |||
== KWin::Toplevel == | == KWin::Toplevel == | ||
| − | + | ||
| + | '''Inherits:''' KDecorationDefines | ||
=== Read-only Properties === | === Read-only Properties === | ||
| + | |||
* ''bool'' '''alpha''' | * ''bool'' '''alpha''' | ||
* ''qulonglong'' '''frameId''' | * ''qulonglong'' '''frameId''' | ||
| Line 226: | Line 296: | ||
* ''bool'' '''notification''': Returns whether the window is a window with a notification. See _NET_WM_WINDOW_TYPE_NOTIFICATION at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | * ''bool'' '''notification''': Returns whether the window is a window with a notification. See _NET_WM_WINDOW_TYPE_NOTIFICATION at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
* ''bool'' '''comboBox''': Returns whether the window is a combobox popup. See _NET_WM_WINDOW_TYPE_COMBO at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | * ''bool'' '''comboBox''': Returns whether the window is a combobox popup. See _NET_WM_WINDOW_TYPE_COMBO at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| − | * ''bool'' '''dndIcon''': Returns whether the window is a Drag& | + | * ''bool'' '''dndIcon''': Returns whether the window is a Drag&Drop icon. See _NET_WM_WINDOW_TYPE_DND at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . |
* ''int'' '''windowType''': Returns the NETWM window type See http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | * ''int'' '''windowType''': Returns the NETWM window type See http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
* ''QStringList'' '''activities''' | * ''QStringList'' '''activities''' | ||
| Line 238: | Line 308: | ||
* '''opacityChanged(KWin::Toplevel *toplevel, qreal oldOpacity)''' | * '''opacityChanged(KWin::Toplevel *toplevel, qreal oldOpacity)''' | ||
| − | * '''damaged(KWin::Toplevel *toplevel, const QRect & | + | * '''damaged(KWin::Toplevel *toplevel, const QRect &damage)''' |
* '''propertyNotify(KWin::Toplevel *toplevel, long a)''' | * '''propertyNotify(KWin::Toplevel *toplevel, long a)''' | ||
* '''geometryChanged()''' | * '''geometryChanged()''' | ||
| − | * '''geometryShapeChanged(KWin::Toplevel *toplevel, const QRect & | + | * '''geometryShapeChanged(KWin::Toplevel *toplevel, const QRect &old)''' |
* '''windowClosed(KWin::Toplevel *toplevel, KWin::Deleted *deleted)''' | * '''windowClosed(KWin::Toplevel *toplevel, KWin::Deleted *deleted)''' | ||
* '''windowShown(KWin::Toplevel *toplevel)''' | * '''windowShown(KWin::Toplevel *toplevel)''' | ||
| Line 247: | Line 317: | ||
=== Functions === | === Functions === | ||
| − | * | + | * '''addRepaint(const QRect &r)''' |
| − | * | + | * '''addRepaint(const QRegion &r)''' |
| − | * | + | * '''addRepaint(int x, int y, int w, int h)''' |
| − | * | + | * '''addLayerRepaint(const QRect &r)''' |
| − | * | + | * '''addLayerRepaint(const QRegion &r)''' |
| − | * | + | * '''addLayerRepaint(int x, int y, int w, int h)''' |
| − | * | + | * '''addRepaintFull()''' |
| + | |||
== KWin::Client == | == KWin::Client == | ||
The Client class encapsulates a window decoration frame. | The Client class encapsulates a window decoration frame. | ||
| Line 281: | Line 352: | ||
* ''bool'' '''wantsInput''': Whether the Client can accept keyboard focus. The value is evaluated each time the getter is called. Because of that no changed signal is provided. | * ''bool'' '''wantsInput''': Whether the Client can accept keyboard focus. The value is evaluated each time the getter is called. Because of that no changed signal is provided. | ||
* ''QPixmap'' '''icon''' | * ''QPixmap'' '''icon''' | ||
| − | |||
* ''bool'' '''isCurrentTab''': Whether this Client is the currently visible Client in its Client Group (Window Tabs). For change connect to the visibleChanged signal on the Client's Group. | * ''bool'' '''isCurrentTab''': Whether this Client is the currently visible Client in its Client Group (Window Tabs). For change connect to the visibleChanged signal on the Client's Group. | ||
* ''QSize'' '''minSize''': Minimum size as specified in WM_NORMAL_HINTS | * ''QSize'' '''minSize''': Minimum size as specified in WM_NORMAL_HINTS | ||
| Line 309: | Line 379: | ||
* '''clientUnminimized(KWin::Client *client, bool animate)''' | * '''clientUnminimized(KWin::Client *client, bool animate)''' | ||
* '''clientStartUserMovedResized(KWin::Client *)''' | * '''clientStartUserMovedResized(KWin::Client *)''' | ||
| − | * '''clientStepUserMovedResized(KWin::Client *, const QRect & | + | * '''clientStepUserMovedResized(KWin::Client *, const QRect &)''' |
* '''clientFinishUserMovedResized(KWin::Client *)''' | * '''clientFinishUserMovedResized(KWin::Client *)''' | ||
* '''activeChanged()''' | * '''activeChanged()''' | ||
| Line 332: | Line 402: | ||
* '''closeWindow()''': Closes the window by either sending a delete_window message or using XKill. | * '''closeWindow()''': Closes the window by either sending a delete_window message or using XKill. | ||
| − | * '' | + | * ''bool'' '''tabBefore(Client *other, bool activate)''' |
| − | * '' | + | * ''bool'' '''tabBehind(Client *other, bool activate)''' |
| − | * '' | + | * ''bool'' '''untab(const QRect &toGeometry=QRect())''' |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Contents |
Methods and properties added to the global JavaScript object.
Inherits: KDecorationOptions
Inherits: KDecorationDefines
The Client class encapsulates a window decoration frame. Inherits: KWin::Toplevel