TimedAnimation

A time-based class@Animation.

adw.timed_animation.TimedAnimation implements a simple animation interpolating the given value from property@TimedAnimation:value-from to property@TimedAnimation:value-to over property@TimedAnimation:duration milliseconds using the curve described by property@TimedAnimation:easing.

If property@TimedAnimation:reverse is set to TRUE, adw.timed_animation.TimedAnimation will instead animate from property@TimedAnimation:value-to to property@TimedAnimation:value-from, and the easing curve will be inverted.

The animation can repeat a certain amount of times, or endlessly, depending on the property@TimedAnimation:repeat-count value. If property@TimedAnimation:alternate is set to TRUE, it will also change the direction every other iteration.

Constructors

this
this(gtk.widget.Widget widget, double from, double to, uint duration, adw.animation_target.AnimationTarget target)

Creates a new adw.timed_animation.TimedAnimation on widget to animate target from from to to.

Members

Functions

getAlternate
bool getAlternate()

Gets whether self changes direction on every iteration.

getDuration
uint getDuration()

Gets the duration of self.

getEasing
adw.types.Easing getEasing()

Gets the easing function self uses.

getRepeatCount
uint getRepeatCount()

Gets the number of times self will play.

getReverse
bool getReverse()

Gets whether self plays backwards.

getValueFrom
double getValueFrom()

Gets the value self will animate from.

getValueTo
double getValueTo()

Gets the value self will animate to.

setAlternate
void setAlternate(bool alternate)

Sets whether self changes direction on every iteration.

setDuration
void setDuration(uint duration)

Sets the duration of self.

setEasing
void setEasing(adw.types.Easing easing)

Sets the easing function self will use.

setRepeatCount
void setRepeatCount(uint repeatCount)

Sets the number of times self will play.

setReverse
void setReverse(bool reverse)

Sets whether self plays backwards.

setValueFrom
void setValueFrom(double value)

Sets the value self will animate from.

setValueTo
void setValueTo(double value)

Sets the value self will animate to.

Inherited Members

From Animation

getFollowEnableAnimationsSetting
bool getFollowEnableAnimationsSetting()

Gets whether self should be skipped when animations are globally disabled.

getState
adw.types.AnimationState getState()

Gets the current value of self.

getTarget
adw.animation_target.AnimationTarget getTarget()

Gets the target self animates.

getValue
double getValue()

Gets the current value of self.

getWidget
gtk.widget.Widget getWidget()

Gets the widget self was created for.

pause
void pause()

Pauses a playing animation for self.

play
void play()

Starts the animation for self.

reset
void reset()

Resets the animation for self.

resume
void resume()

Resumes a paused animation for self.

setFollowEnableAnimationsSetting
void setFollowEnableAnimationsSetting(bool setting)

Sets whether to skip self when animations are globally disabled.

setTarget
void setTarget(adw.animation_target.AnimationTarget target)

Sets the target self animates to target.

skip
void skip()

Skips the animation for self.

connectDone
ulong connectDone(T callback, Flag!"After" after)

Connect to Done signal.