7ad25b663e
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 |
||
---|---|---|
.. | ||
documentation-effect-global.xml | ||
documentation-global.xml | ||
kwinscript.desktop | ||
meta.cpp | ||
meta.h | ||
scriptedeffect.cpp | ||
scriptedeffect.h | ||
scripting.cpp | ||
scripting.h | ||
scriptingutils.cpp | ||
scriptingutils.h | ||
timer.cpp | ||
workspace_wrapper.cpp | ||
workspace_wrapper.h |