adw.timed_animation

Module for [TimedAnimation] class

Types 3

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.

Methods
GType _gType() @property
TimedAnimation self()Returns `this`, for use in `with` statements.
TimedAnimationGidBuilder builder()Get builder for [adw.timed_animation.TimedAnimation] Returns: New builder object
bool alternate() @propertyGet `alternate` property. Returns: Whether the animation changes direction on every iteration.
void alternate(bool propval) @propertySet `alternate` property. Params: propval = Whether the animation changes direction on every iteration.
uint duration() @propertyGet `duration` property. Returns: Duration of the animation, in milliseconds.
void duration(uint propval) @propertySet `duration` property. Params: propval = Duration of the animation, in milliseconds.
adw.types.Easing easing() @propertyGet `easing` property. Returns: Easing function used in the animation.
void easing(adw.types.Easing propval) @propertySet `easing` property. Params: propval = Easing function used in the animation.
uint repeatCount() @propertyGet `repeatCount` property. Returns: Number of times the animation will play.
void repeatCount(uint propval) @propertySet `repeatCount` property. Params: propval = Number of times the animation will play.
bool reverse() @propertyGet `reverse` property. Returns: Whether the animation plays backwards.
void reverse(bool propval) @propertySet `reverse` property. Params: propval = Whether the animation plays backwards.
double valueFrom() @propertyGet `valueFrom` property. Returns: The value to animate from.
void valueFrom(double propval) @propertySet `valueFrom` property. Params: propval = The value to animate from.
double valueTo() @propertyGet `valueTo` property. Returns: The value to animate to.
void valueTo(double propval) @propertySet `valueTo` property. Params: propval = The value to animate to.
bool getAlternate()Gets whether self changes direction on every iteration. Returns: whether self alternates
uint getDuration()Gets the duration of self. Returns: the duration of self, in milliseconds
adw.types.Easing getEasing()Gets the easing function self uses. Returns: the easing function self uses
uint getRepeatCount()Gets the number of times self will play. Returns: the number of times self will play
bool getReverse()Gets whether self plays backwards. Returns: whether self plays backwards
double getValueFrom()Gets the value self will animate from. Returns: the value to animate from
double getValueTo()Gets the value self will animate to. Returns: the value to animate to
void setAlternate(bool alternate)Sets whether self changes direction on every iteration.
void setDuration(uint duration)Sets the duration of self.
void setEasing(adw.types.Easing easing)Sets the easing function self will use.
void setRepeatCount(uint repeatCount)Sets the number of times self will play.
void setReverse(bool reverse)Sets whether self plays backwards.
void setValueFrom(double value)Sets the value self will animate from.
void setValueTo(double value)Sets the value self will animate to.
Constructors
this(void * ptr, Flag!"Take" take)
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.
Methods
T alternate(bool propval)Set `alternate` property. Params: propval = Whether the animation changes direction on every iteration. Returns: Builder instance for fluent chaining
T duration(uint propval)Set `duration` property. Params: propval = Duration of the animation, in milliseconds.
T easing(adw.types.Easing propval)Set `easing` property. Params: propval = Easing function used in the animation.
T repeatCount(uint propval)Set `repeatCount` property. Params: propval = Number of times the animation will play.
T reverse(bool propval)Set `reverse` property. Params: propval = Whether the animation plays backwards. Returns: Builder instance for fluent chaining
T valueFrom(double propval)Set `valueFrom` property. Params: propval = The value to animate from.
T valueTo(double propval)Set `valueTo` property. Params: propval = The value to animate to.

Fluent builder for [adw.timed_animation.TimedAnimation]