A builder class that can be used to construct an Animator wrapping an AnimatorSet implementation.
More...
#include <juce_AnimatorSetBuilder.h>
A builder class that can be used to construct an Animator wrapping an AnimatorSet implementation.
It allows you to compose larger, complex animations by executing multiple constituent Animator instances in a coordinated manner. It essentially builds an Animator with an execution graph referencing other Animators.
Unlike ValueAnimatorBuilder, objects of AnimatorSetBuilder returned by its member functions reference the same underlying, modifiable builder instance. For this reason build() can be called only once on an underlying builder instance. This is to allow you to attach Animators to different points of the execution graph.
E.g. to have two functions followed by different amounts of delay, each followed by another function you would write the following.
A builder class that can be used to construct an Animator wrapping an AnimatorSet implementation.
Definition juce_AnimatorSetBuilder.h:69
Helper class for using linear interpolation between a begin and an end value.
Definition juce_StaticAnimationLimits.h:75
◆ AnimatorSetBuilder() [1/3]
AnimatorSetBuilder::AnimatorSetBuilder |
( |
Animator |
startingAnimator | ) |
|
|
explicit |
Creates a new builder instance specifying the startingAnimator as the first Animator that is started.
◆ AnimatorSetBuilder() [2/3]
AnimatorSetBuilder::AnimatorSetBuilder |
( |
double |
delayMs | ) |
|
|
explicit |
Creates a builder with an empty starting animation that completes after delayMs.
◆ AnimatorSetBuilder() [3/3]
AnimatorSetBuilder::AnimatorSetBuilder |
( |
std::function< void()> |
cb | ) |
|
|
explicit |
Creates a builder with a starting animation that completes at the first update and executes the provided callback function.
◆ togetherWith() [1/3]
Adds an Animator to the execution graph that will start executing at the same time as the Animator provided last to this builder object.
◆ togetherWith() [2/3]
Adds an empty Animator to the execution graph that will start executing at the same time as the Animator provided last to this builder object, and completes in delayMs.
◆ togetherWith() [3/3]
Adds an empty Animator to the execution graph that will start executing at the same time as the Animator provided last to this builder object, completes upon its first update, and executes the provided callback.
◆ followedBy() [1/3]
Adds an Animator to the execution graph that will start executing after the Animator provided last to this builder object completes.
◆ followedBy() [2/3]
Adds an empty Animator to the execution graph that will start executing after the Animator provided last to this builder object.
◆ followedBy() [3/3]
Adds an empty Animator to the execution graph that will start executing after the Animator provided last to this builder object, completes upon its first update, and executes the provided callback.
◆ withTimeTransform()
Specifies a time transformation function that the built Animator should utilise, allowing accelerating and decelerating the entire set of Animators.
The provided function should be monotonically increasing.
◆ build()
Builds an Animator that executes the previously described and parameterised execution graph.
This function should only be called once for every AnimatorSetBuilder created by its public constructor.
The documentation for this class was generated from the following file: