Mgraesslin (Talk | contribs) (Created page with "== Global == Methods and properties added to the global JavaScript object. === Read-only Properties === * ''KWin::ScriptedEffect'' '''effect''': Global property to the actu...") |
Mgraesslin (Talk | contribs) |
||
| Line 85: | Line 85: | ||
* '''addRepaint(const QRegion &r)=0''' | * '''addRepaint(const QRegion &r)=0''' | ||
* '''addRepaint(int x, int y, int w, int h)=0''' | * '''addRepaint(int x, int y, int w, int h)=0''' | ||
| + | |||
| + | == KWin::EffectWindow == | ||
| + | Representation of a window used by/for Effect classes. | ||
| + | === Read-only Properties === | ||
| + | |||
| + | * ''bool'' '''alpha''' | ||
| + | * ''QRect'' '''geometry''' | ||
| + | * ''QRect'' '''expandedGeometry''' | ||
| + | * ''int'' '''height''' | ||
| + | * ''qreal'' '''opacity''' | ||
| + | * ''QPoint'' '''pos''' | ||
| + | * ''int'' '''screen''' | ||
| + | * ''QSize'' '''size''' | ||
| + | * ''int'' '''width''' | ||
| + | * ''int'' '''x''' | ||
| + | * ''int'' '''y''' | ||
| + | * ''int'' '''desktop''' | ||
| + | * ''bool'' '''onAllDesktops''' | ||
| + | * ''bool'' '''onCurrentDesktop''' | ||
| + | * ''QRect'' '''rect''' | ||
| + | * ''QString'' '''windowClass''' | ||
| + | * ''QString'' '''windowRole''' | ||
| + | * ''bool'' '''desktopWindow''': Returns whether the window is a desktop background window (the one with wallpaper). See _NET_WM_WINDOW_TYPE_DESKTOP at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''dock''': Returns whether the window is a dock (i.e. a panel). See _NET_WM_WINDOW_TYPE_DOCK at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''toolbar''': Returns whether the window is a standalone (detached) toolbar window. See _NET_WM_WINDOW_TYPE_TOOLBAR at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''menu''': Returns whether the window is a torn-off menu. See _NET_WM_WINDOW_TYPE_MENU at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''normalWindow''': Returns whether the window is a "normal" window, i.e. an application or any other window for which none of the specialized window types fit. See _NET_WM_WINDOW_TYPE_NORMAL at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''dialog''': Returns whether the window is a dialog window. See _NET_WM_WINDOW_TYPE_DIALOG at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''splash''': Returns whether the window is a splashscreen. Note that many (especially older) applications do not support marking their splash windows with this type. See _NET_WM_WINDOW_TYPE_SPLASH at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''utility''': Returns whether the window is a utility window, such as a tool window. See _NET_WM_WINDOW_TYPE_UTILITY at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''dropdownMenu''': Returns whether the window is a dropdown menu (i.e. a popup directly or indirectly open from the applications menubar). See _NET_WM_WINDOW_TYPE_DROPDOWN_MENU at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''popupMenu''': Returns whether the window is a popup menu (that is not a torn-off or dropdown menu). See _NET_WM_WINDOW_TYPE_POPUP_MENU at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''tooltip''': Returns whether the window is a tooltip. See _NET_WM_WINDOW_TYPE_TOOLTIP 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'' '''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 . | ||
| + | * ''bool'' '''managed''': Whether this EffectWindow is managed by KWin (it has control over its placement and other aspects, as opposed to override-redirect windows that are entirely handled by the application). | ||
| + | * ''bool'' '''deleted''': Whether this EffectWindow represents an already deleted window and only kept for the compositor for animations. | ||
| + | * ''bool'' '''shaped''': Whether the window has an own shape | ||
| + | * ''QRegion'' '''shape''': The Window's shape | ||
| + | * ''QString'' '''caption''': The Caption of the window. Read from WM_NAME property together with a suffix for hostname and shortcut. | ||
| + | * ''bool'' '''keepAbove''': Whether the window is set to be kept above other windows. | ||
| + | * ''bool'' '''modal''': Whether the window represents a modal window. | ||
| + | * ''bool'' '''moveable''': Whether the window is moveable. Even if it is not moveable, it might be possible to move it to another screen. moveableAcrossScreens | ||
| + | * ''bool'' '''moveableAcrossScreens''': Whether the window can be moved to another screen. moveable | ||
| + | * ''QSize'' '''basicUnit''': By how much the window wishes to grow/shrink at least. Usually QSize(1,1). MAY BE DISOBEYED BY THE WM! It's only for information, do NOT rely on it at all. | ||
| + | * ''bool'' '''move''': Whether the window is currently being moved by the user. | ||
| + | * ''bool'' '''resize''': Whether the window is currently being resized by the user. | ||
| + | * ''QRect'' '''iconGeometry''': The optional geometry representing the minimized Client in e.g a taskbar. See _NET_WM_ICON_GEOMETRY at http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . | ||
| + | * ''bool'' '''specialWindow''': Returns whether the window is any of special windows types (desktop, dock, splash, ...), i.e. window types that usually don't have a window frame and the user does not use window management (moving, raising,...) on them. | ||
| + | * ''QPixmap'' '''icon''' | ||
| + | * ''bool'' '''skipSwitcher''': Whether the window should be excluded from window switching effects. | ||
| + | * ''QRect'' '''contentsRect''': Geometry of the actual window contents inside the whole (including decorations) window. | ||
| + | * ''QRect'' '''decorationInnerRect''': Geometry of the transparent rect in the decoration. May be different from contentsRect if the decoration is extended into the client area. | ||
| + | * ''bool'' '''hasDecoration''' | ||
| + | * ''QStringList'' '''activities''' | ||
| + | * ''bool'' '''onCurrentActivity''' | ||
| + | * ''bool'' '''onAllActivities''' | ||
| + | === Read-write Properties === | ||
| + | |||
| + | * ''bool'' '''minimized''': Whether the window is minimized. | ||
| + | === Signals === | ||
| + | |||
| + | === Functions === | ||
| + | |||
| + | * '''addRepaint(const QRect &r)''' | ||
| + | * '''addRepaint(int x, int y, int w, int h)''' | ||
| + | * '''addRepaintFull()''' | ||
| + | * '''addLayerRepaint(const QRect &r)''' | ||
| + | * '''addLayerRepaint(int x, int y, int w, int h)''' | ||
| + | * ''bool'' '''isOnActivity(QString id) const ''' | ||
| + | * ''KWin::EffectWindow *'' '''findModal()=0''' | ||
| + | * ''EffectWindowList'' '''mainWindows() const =0''' | ||
| + | * '''closeWindow() const ''' | ||
| + | * '''setData(int role, const QVariant &data)=0''': Can be used to by effects to store arbitrary data in the EffectWindow. | ||
| + | * ''QVariant'' '''data(int role) const =0''' | ||
| + | |||
| + | |||
| + | == KWin::AnimationData == | ||
| + | |||
| + | === Read-only Properties === | ||
| + | |||
| + | === Read-write Properties === | ||
| + | |||
| + | * ''KWin::AnimationEffect::Anchor'' '''sourceAnchor''' | ||
| + | * ''KWin::AnimationEffect::Anchor'' '''targetAnchor''' | ||
| + | * ''int'' '''relativeSourceX''' | ||
| + | * ''int'' '''relativeSourceY''' | ||
| + | * ''int'' '''relativeTargetX''' | ||
| + | * ''int'' '''relativeTargetY''' | ||
| + | * ''Axis'' '''axis''' | ||
| + | === Signals === | ||
| + | |||
| + | === Functions === | ||
== KWin::ScriptedEffect == | == KWin::ScriptedEffect == | ||
Contents |
Methods and properties added to the global JavaScript object.
Manager class that handles all the effects.
Representation of a window used by/for Effect classes.
Inherits: KWin::AnimationEffect