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.
TimedAnimation self()Returns `this`, for use in `with` statements.TimedAnimationGidBuilder builder()Get builder for [adw.timed_animation.TimedAnimation] Returns: New builder objectbool 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.void reverse(bool propval) @propertySet `reverse` property. Params: propval = Whether the animation plays backwards.void valueFrom(double propval) @propertySet `valueFrom` property. Params: propval = The value to animate from.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 alternatesuint getDuration()Gets the duration of self. Returns: the duration of self, in millisecondsadw.types.Easing getEasing()Gets the easing function self uses. Returns: the easing function self usesuint getRepeatCount()Gets the number of times self will play. Returns: the number of times self will playbool getReverse()Gets whether self plays backwards. Returns: whether self plays backwardsdouble getValueFrom()Gets the value self will animate from. Returns: the value to animate fromdouble getValueTo()Gets the value self will animate to. Returns: the value to animate tovoid 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.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.T alternate(bool propval)Set `alternate` property. Params: propval = Whether the animation changes direction on every iteration. Returns: Builder instance for fluent chainingT 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 chainingT 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]