Class SelectionBorderAnimation
Animates a node's selection border fading in.
public class SelectionBorderAnimation : IAnimation
- Inheritance
-
SelectionBorderAnimation
- Implements
- Inherited Members
Constructors
SelectionBorderAnimation(Node, bool, double, Action<Node, double>?, Action?)
Creates a new selection border animation.
public SelectionBorderAnimation(Node node, bool selecting, double duration = 0.15, Action<Node, double>? onUpdate = null, Action? onComplete = null)
Parameters
Properties
CurrentOpacity
Gets the current border opacity.
public double CurrentOpacity { get; }
Property Value
IsComplete
Gets whether the animation has completed.
public bool IsComplete { get; }
Property Value
Methods
Cancel()
Called when the animation completes or is cancelled.
public void Cancel()
Deselect(Node, Action<Node, double>?, Action?)
Creates an animation for when a node becomes deselected.
public static SelectionBorderAnimation Deselect(Node node, Action<Node, double>? onUpdate = null, Action? onComplete = null)
Parameters
Returns
Select(Node, Action<Node, double>?, Action?)
Creates an animation for when a node becomes selected.
public static SelectionBorderAnimation Select(Node node, Action<Node, double>? onUpdate = null, Action? onComplete = null)
Parameters
Returns
Update(double)
Updates the animation with the elapsed time since the last frame.
public void Update(double deltaTime)
Parameters
deltaTimedoubleTime elapsed since last update in seconds.