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
meta.h
scriptedeffect.cpp Adding more declarative way to animate a window in JavaScript 2012-11-09 08:05:02 +01:00
scriptedeffect.h
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
scriptingutils.h
timer.cpp
workspace_wrapper.cpp
workspace_wrapper.h