Tweeny 4.1.0
A Tweening library for modern C++
Loading...
Searching...
No Matches

◆ seek

detail::event::seek_t seek {}
inlineconstexpr

Event triggered after each seek() call.

Use this event to react when the tween jumps to a specific frame position. Unlike step events, seek events fire regardless of the direction or distance of the movement.

Common use cases:

  • Scrubbing through animations
  • Reacting to timeline jumps
  • Updating state after non-linear navigation
  • Synchronizing with external timeline controls
auto tween = tweeny::from(0).to(100).during(100U).build();
printf("Seeked to frame with value: %d\n", t.peek());
});
tween.seek(50U); // Triggers the callback
auto seek(uint32_t target_frame) -> tween_value_t
Seeks to a specific frame in the animation.
auto on(detail::event::step_t, Callback &&cb) -> void
Registers a callback for step() events.
A tween represents an animation between keyframes.
Definition tween.h:68
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::seek_t seek
Event triggered after each seek() call.
Definition event.h:111
@ ok
Continue receiving events.
Definition detail/event.h:108
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
See also
step For frame-by-frame progression events
jump For keyframe-specific navigation