TimedAnimation

class TimedAnimation(pointer: <Error class: unknown class><<Error class: unknown class>>) : Animation

A time-based class@Animation.

AdwTimedAnimation 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, AdwTimedAnimation 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

Link copied to clipboard
constructor(widget: <Error class: unknown class>, from: Double, to: Double, duration: <Error class: unknown class>, target: AnimationTarget)

Creates a new AdwTimedAnimation on @widget to animate @target from @from to @to.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwAnimationPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val adwTimedAnimationPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

Whether the animation changes direction on every iteration.

Link copied to clipboard
var duration: <Error class: unknown class>

Duration of the animation, in milliseconds.

Link copied to clipboard

Easing function used in the animation.

Link copied to clipboard

Whether to skip the animation when animations are globally disabled.

Link copied to clipboard
var repeatCount: <Error class: unknown class>

Number of times the animation will play.

Link copied to clipboard

Whether the animation plays backwards.

Link copied to clipboard

The animation state.

Link copied to clipboard

The target to animate.

Link copied to clipboard
open val value: Double

The current value of the animation.

Link copied to clipboard

The value to animate from.

Link copied to clipboard

The value to animate to.

Link copied to clipboard
open val widget: <Error class: unknown class>

The animation widget.

Functions

Link copied to clipboard
fun connectDone(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

This signal is emitted when the animation has been completed, either on its own or via calling method@Animation.skip.

Link copied to clipboard

Gets whether @self changes direction on every iteration.

Link copied to clipboard
fun getDuration(): <Error class: unknown class>

Gets the duration of @self.

Link copied to clipboard

Gets the easing function @self uses.

Link copied to clipboard

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

Link copied to clipboard
fun getRepeatCount(): <Error class: unknown class>

Gets the number of times @self will play.

Link copied to clipboard

Gets whether @self plays backwards.

Link copied to clipboard

Gets the current value of @self.

Link copied to clipboard

Gets the target @self animates.

Link copied to clipboard
open fun getValue(): Double

Gets the current value of @self.

Link copied to clipboard

Gets the value @self will animate from.

Link copied to clipboard

Gets the value @self will animate to.

Link copied to clipboard
open fun getWidget(): <Error class: unknown class>

Gets the widget @self was created for.

Link copied to clipboard
open fun pause()

Pauses a playing animation for @self.

Link copied to clipboard
open fun play()

Starts the animation for @self.

Link copied to clipboard
open fun reset()

Resets the animation for @self.

Link copied to clipboard
open fun resume()

Resumes a paused animation for @self.

Link copied to clipboard
fun setAlternate(alternate: Boolean)

Sets whether @self changes direction on every iteration.

Link copied to clipboard
fun setDuration(duration: <Error class: unknown class>)

Sets the duration of @self.

Link copied to clipboard
fun setEasing(easing: Easing)

Sets the easing function @self will use.

Link copied to clipboard

Sets whether to skip @self when animations are globally disabled.

Link copied to clipboard
fun setRepeatCount(repeatCount: <Error class: unknown class>)

Sets the number of times @self will play.

Link copied to clipboard
fun setReverse(reverse: Boolean)

Sets whether @self plays backwards.

Link copied to clipboard
open fun setTarget(target: AnimationTarget)

Sets the target @self animates to @target.

Link copied to clipboard
fun setValueFrom(value: Double)

Sets the value @self will animate from.

Link copied to clipboard
fun setValueTo(value: Double)

Sets the value @self will animate to.

Link copied to clipboard
open fun skip()

Skips the animation for @self.