Class Easing
Base class facilitating the implementation of easing functions.
Inheritance
Inherited Members
Namespace: Dalamud.Interface.Animation
Assembly: Dalamud.dll
Syntax
public abstract class Easing
Constructors
| Improve this Doc View SourceEasing(TimeSpan)
Initializes a new instance of the Easing class with the specified duration.
Declaration
protected Easing(TimeSpan duration)
Parameters
| Type | Name | Description |
|---|---|---|
| System.TimeSpan | duration | The animation duration. |
Properties
| Improve this Doc View SourceDuration
Gets or sets the duration of the animation.
Declaration
public TimeSpan Duration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
EasedPoint
Gets the resulting point at the current timestep.
Declaration
public Vector2 EasedPoint { get; }
Property Value
| Type | Description |
|---|---|
| System.Numerics.Vector2 |
IsDone
Gets a value indicating whether or not the animation is done.
Declaration
public bool IsDone { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsInverse
Gets or sets a value indicating whether the result of the easing should be inversed.
Declaration
public bool IsInverse { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsRunning
Gets a value indicating whether or not the animation is running.
Declaration
public bool IsRunning { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Point1
Gets or sets the origin point of the animation.
Declaration
public Vector2? Point1 { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Numerics.Vector2> |
Point2
Gets or sets the destination point of the animation.
Declaration
public Vector2? Point2 { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Numerics.Vector2> |
Progress
Gets the progress of the animation, from 0 to 1.
Declaration
protected double Progress { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Value
Gets or sets the current value of the animation, from 0 to 1.
Declaration
public double Value { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
| Improve this Doc View SourceRestart()
Restarts the animation.
Declaration
public void Restart()
Start()
Starts the animation from where it was last stopped, or from the start if it was never started before.
Declaration
public void Start()
Stop()
Stops the animation at the current point.
Declaration
public void Stop()
Update()
Updates the animation.
Declaration
public abstract void Update()