Table of Contents

Class CategorizedAnimationWrapper

Namespace
FlowGraph.Avalonia.Animation
Assembly
FlowGraph.Avalonia.dll

Wrapper that adds category information to any animation.

public class CategorizedAnimationWrapper : ICategorizedAnimation, IAnimation
Inheritance
CategorizedAnimationWrapper
Implements
Inherited Members

Constructors

CategorizedAnimationWrapper(IAnimation, AnimationCategory, IEnumerable<string>?)

public CategorizedAnimationWrapper(IAnimation animation, AnimationCategory category, IEnumerable<string>? affectedNodeIds = null)

Parameters

animation IAnimation
category AnimationCategory
affectedNodeIds IEnumerable<string>

Properties

AffectedNodeIds

Gets the IDs of nodes affected by this animation (if applicable).

public IReadOnlyCollection<string> AffectedNodeIds { get; }

Property Value

IReadOnlyCollection<string>

Category

Gets the category of this animation.

public AnimationCategory Category { get; }

Property Value

AnimationCategory

IsComplete

Gets whether the animation has completed.

public bool IsComplete { get; }

Property Value

bool

Methods

Cancel()

Called when the animation completes or is cancelled.

public void Cancel()

Update(double)

Updates the animation with the elapsed time since the last frame.

public void Update(double deltaTime)

Parameters

deltaTime double

Time elapsed since last update in seconds.