kwin/scripting
Martin Gräßlin 7ad25b663e Adding more declarative way to animate a window in JavaScript
The current API call to animate a window does not feel very JavaScripty.
Therefore a new method "animate" is added to the global scope, which
takes a JavaScript object of the following structure:

{
    window: EffectWindow, /* the window to animate, required */
    duration: int, /* duration in msec, required */
    curve: QEasingCurve.Type, /* global easing curve, optional */
    type: Effect.Attribute, /* for first animation, optional */
    from: FPx2, /* for first animation, optional */
    to: FPx2, /* for first animation, optional */
    delay: int, /* for first animation, optional */
    animations: [ /* additional animations, optional */
        {
        curve: QEasingCurve.Type, /* overrides global */
        type: Effect.Attribute,
        from: FPx2,
        to: FPx2,
        delay: int
        }
    ]
}

At least one animation needs to be specified either on the root level
or in the array of animations. Curve is the only property on root level
which is used in the animations, if not provided.

REVIEW: 107079
2012-11-09 08:05:02 +01:00
..
documentation-effect-global.xml Adding more declarative way to animate a window in JavaScript 2012-11-09 08:05:02 +01:00
documentation-global.xml Fix documentation error for global KWin script method 2012-10-28 09:50:34 +01:00
kwinscript.desktop SVN_SILENT made messages (.desktop file) 2012-10-16 18:43:37 +02:00
meta.cpp Let kwin scripts add dynamic properties to client objects. 2012-04-24 17:42:16 +02:00
meta.h fix tabbing 2012-02-11 16:30:22 +01:00
scriptedeffect.cpp Adding more declarative way to animate a window in JavaScript 2012-11-09 08:05:02 +01:00
scriptedeffect.h Screen Edge bindings for Scripts and Scripted Effects 2012-05-15 17:54:31 +02:00
scripting.cpp Merge branch 'KDE/4.9' 2012-09-19 20:21:18 +02:00
scripting.h Merge branch 'KDE/4.9' 2012-09-19 20:21:18 +02:00
scriptingutils.cpp Asserts for KWin scripts 2012-05-10 10:00:54 +02:00
scriptingutils.h Allow Scripts to add menus to the UserActionsMenu 2012-09-07 07:32:00 +02:00
timer.cpp Simplify the Timer in scripting 2012-01-22 13:02:34 +01:00
workspace_wrapper.cpp Return displayHeight for property displayHeight and not displayWidth 2012-09-04 06:26:39 +02:00
workspace_wrapper.h missing include 2012-07-19 07:11:45 +02:00