|
Tweeny 4.1.0
A Tweening library for modern C++
|
◆ on() [1/7]
template<typename FirstValueType, typename... RemainingValueTypes>
template<typename Callback>
Registers a callback for animation completion. The callback is invoked when the tween reaches the last frame (progress >= 1.0). Triggered by step(), seek(), or jump() when they result in completion.
printf("Animation complete!\n");
return event::response::ok;
});
t.seek(100U); // Triggers complete event
tween(const key_frames_t &key_frames_input) Constructs a tween from keyframes (use builder API instead). tweeny_builder< true, FirstValue, RemainingValues... > to(const FirstValue &firstComponent, const RemainingValues &... remainingComponents) & Adds a target keyframe to the tween. Definition tweeny.h:109 tweeny_builder & during(FrameCountsType... frame_counts) Specifies per-component frame durations for the last keyframe segment. Definition tweeny.h:245 constexpr detail::event::complete_t complete Event triggered when the animation is at completion. Definition event.h:174 tweeny_builder< false, FirstValue, RemainingValues... > from(FirstValue firstComponent, RemainingValues... remainingComponents) Creates a new tween builder starting from the specified value(s). Definition tweeny.h:347 |