Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinanimationeffect.h
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Line(s) | 175 | protected: | |||
---|---|---|---|---|---|
223 | * @returns @c true if the direction of the animation was changed successfully, | 223 | * @returns @c true if the direction of the animation was changed successfully, | ||
224 | * otherwise @c false. | 224 | * otherwise @c false. | ||
225 | **/ | 225 | **/ | ||
226 | bool redirect(quint64 animationId, | 226 | bool redirect(quint64 animationId, | ||
227 | Direction direction, | 227 | Direction direction, | ||
228 | TerminationPolicy terminationPolicy = TerminationPolicy::TerminateAtSource); | 228 | TerminationPolicy terminationPolicy = TerminationPolicy::TerminateAtSource); | ||
229 | 229 | | |||
230 | /** | 230 | /** | ||
231 | * Fast-forwards the animation to the target position. | ||||
232 | * | ||||
233 | * @param animationId The id of the animation. | ||||
234 | * @returns @c true if the animation was fast-forwarded successfully, otherwise | ||||
235 | * @c false. | ||||
236 | **/ | ||||
237 | bool complete(quint64 animationId); | ||||
238 | | ||||
239 | /** | ||||
231 | * Called whenever an animation end, passes the transformed @class EffectWindow @enum Attribute and originally supplied @param meta | 240 | * Called whenever an animation end, passes the transformed @class EffectWindow @enum Attribute and originally supplied @param meta | ||
232 | * You can reimplement it to keep a constant transformation for the window (ie. keep it a this opacity or position) or to start another animation | 241 | * You can reimplement it to keep a constant transformation for the window (ie. keep it a this opacity or position) or to start another animation | ||
233 | */ | 242 | */ | ||
234 | virtual void animationEnded( EffectWindow *, Attribute, uint meta ) {Q_UNUSED(meta);} | 243 | virtual void animationEnded( EffectWindow *, Attribute, uint meta ) {Q_UNUSED(meta);} | ||
235 | 244 | | |||
236 | /** | 245 | /** | ||
237 | * Cancel a running animation. @return true if an animation for @p animationId was found (and canceled) | 246 | * Cancel a running animation. @return true if an animation for @p animationId was found (and canceled) | ||
238 | * NOTICE that there is NO animated reset of the original value. You'll have to provide that with a second animation | 247 | * NOTICE that there is NO animated reset of the original value. You'll have to provide that with a second animation | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |