Class AnimationOptions
- Namespace
- OmegaEngine
- Assembly
- OmegaEngine.dll
Options controlling an animation.
public record AnimationOptions : IEquatable<AnimationOptions>
- Inheritance
-
objectAnimationOptions
- Implements
- Derived
Constructors
AnimationOptions(AnimationOptions)
protected AnimationOptions(AnimationOptions original)
Parameters
originalAnimationOptions
AnimationOptions(TimeSpan, EasingFunction, bool, bool)
Options controlling an animation.
public AnimationOptions(TimeSpan Duration, EasingFunction EasingFunction = EasingFunction.Sinusoidal, bool EaseIn = true, bool EaseOut = true)
Parameters
DurationTimeSpanThe duration of the complete animation.
EasingFunctionEasingFunctionThe kind of easing function to use.
EaseInboolWhether the animation should be eased in. I.e., start slowly and then speed up.
EaseOutboolWhether the animation should be eased out. I.e., slow down at the end.
Properties
Duration
The duration of the complete animation.
public TimeSpan Duration { get; init; }
Property Value
EaseIn
Whether the animation should be eased in. I.e., start slowly and then speed up.
public bool EaseIn { get; init; }
Property Value
EaseOut
Whether the animation should be eased out. I.e., slow down at the end.
public bool EaseOut { get; init; }
Property Value
EasingFunction
The kind of easing function to use.
public EasingFunction EasingFunction { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out TimeSpan, out EasingFunction, out bool, out bool)
public void Deconstruct(out TimeSpan Duration, out EasingFunction EasingFunction, out bool EaseIn, out bool EaseOut)
Parameters
DurationTimeSpanEasingFunctionEasingFunctionEaseInboolEaseOutbool
Equals(AnimationOptions?)
public virtual bool Equals(AnimationOptions? other)
Parameters
otherAnimationOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(AnimationOptions?, AnimationOptions?)
public static bool operator ==(AnimationOptions? left, AnimationOptions? right)
Parameters
leftAnimationOptionsrightAnimationOptions
Returns
operator !=(AnimationOptions?, AnimationOptions?)
public static bool operator !=(AnimationOptions? left, AnimationOptions? right)
Parameters
leftAnimationOptionsrightAnimationOptions