Builder for composing animation sequences and parallel groups. More...
#include <animator_set.hpp>
Classes | |
| class | Runner |
| Run the built animation. Advances through sequence, returns true when all done. More... | |
Public Member Functions | |
| AnimatorSetBuilder & | name (std::string n) |
| Assign a logical name to this animator set. | |
| const std::string & | configured_name () const noexcept |
| AnimatorSetBuilder & | then (float from, float to, float duration, std::function< void(float)> apply, EasingFunction ease=easing::linear) |
| Add a tween that runs in sequence. | |
| AnimatorSetBuilder & | delay (float seconds) |
| Add a delay (tween from 0 to 0). | |
| AnimatorSetBuilder & | begin_parallel () |
| Start a parallel group — all tweens added until end_parallel() run together. | |
| AnimatorSetBuilder & | with (float from, float to, float duration, std::function< void(float)> apply, EasingFunction ease=easing::linear) |
| Add a tween to the current parallel group. | |
| AnimatorSetBuilder & | end_parallel () |
| End parallel group and add it to the sequence. | |
| std::vector< std::unique_ptr< AnimationStep > > | build () |
| Build and return the step sequence. | |
| Runner | build_runner () |
Builder for composing animation sequences and parallel groups.
|
inline |
Start a parallel group — all tweens added until end_parallel() run together.
|
inline |
Build and return the step sequence.
|
inline |
|
inlinenoexcept |
|
inline |
Add a delay (tween from 0 to 0).
|
inline |
End parallel group and add it to the sequence.
|
inline |
|
inline |
Add a tween that runs in sequence.
|
inline |
Add a tween to the current parallel group.