Skip to content

Class Animation<T>

Definition

Namespace: StardewUI.Animation
Assembly: StardewUI.dll

Defines a single animation.

public record Animation<T> : IEquatable<StardewUI.Animation.Animation<T>>

Type Parameters

T
The type of value being animated.

Inheritance
Object ⇦ Animation<T>

Implements
IEquatable<Animation<T>>

Members

Constructors

Name Description
Animation<T>(T, T, TimeSpan) Defines a single animation.

Properties

Name Description
Duration Duration of the animation.
EndValue The final value for the animated property.
EqualityContract
StartValue The initial value for the animated property.

Details

Constructors

Animation<T>(T, T, TimeSpan)

Defines a single animation.

public Animation<T>(T StartValue, T EndValue, System.TimeSpan Duration);
Parameters

StartValue   T
The initial value for the animated property.

EndValue   T
The final value for the animated property.

Duration   TimeSpan
Duration of the animation.


Properties

Duration

Duration of the animation.

public System.TimeSpan Duration { get; set; }
Property Value

TimeSpan


EndValue

The final value for the animated property.

public T EndValue { get; set; }
Property Value

T


EqualityContract

protected System.Type EqualityContract { get; }
Property Value

Type


StartValue

The initial value for the animated property.

public T StartValue { get; set; }
Property Value

T