Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::AnimatorSetBuilder Class Reference

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 ()

Detailed Description

Builder for composing animation sequences and parallel groups.

Member Function Documentation

◆ begin_parallel()

AnimatorSetBuilder & pulp::view::AnimatorSetBuilder::begin_parallel ( )
inline

Start a parallel group — all tweens added until end_parallel() run together.

◆ build()

std::vector< std::unique_ptr< AnimationStep > > pulp::view::AnimatorSetBuilder::build ( )
inline

Build and return the step sequence.

◆ build_runner()

Runner pulp::view::AnimatorSetBuilder::build_runner ( )
inline

◆ configured_name()

const std::string & pulp::view::AnimatorSetBuilder::configured_name ( ) const
inlinenoexcept

◆ delay()

AnimatorSetBuilder & pulp::view::AnimatorSetBuilder::delay ( float seconds)
inline

Add a delay (tween from 0 to 0).

◆ end_parallel()

AnimatorSetBuilder & pulp::view::AnimatorSetBuilder::end_parallel ( )
inline

End parallel group and add it to the sequence.

◆ name()

AnimatorSetBuilder & pulp::view::AnimatorSetBuilder::name ( std::string n)
inline

Assign a logical name to this animator set.

Threaded through to the Runner, which stamps it as source_kind="animator-set", source_id=<name> on every emitted publish event. Off by default; builders that never call name() produce events with no provenance.

◆ then()

AnimatorSetBuilder & pulp::view::AnimatorSetBuilder::then ( float from,
float to,
float duration,
std::function< void(float)> apply,
EasingFunction ease = easing::linear )
inline

Add a tween that runs in sequence.

◆ with()

AnimatorSetBuilder & pulp::view::AnimatorSetBuilder::with ( float from,
float to,
float duration,
std::function< void(float)> apply,
EasingFunction ease = easing::linear )
inline

Add a tween to the current parallel group.


The documentation for this class was generated from the following file: