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: <Error class: unknown class>, to: <Error class: unknown class>, 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: <Error class: unknown class>

The current value of the animation.

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

The value to animate from.

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

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
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
open fun skip()

Skips the animation for @self.