Runtime call-site bundle for starting an AnimatedValue<T>. More...
#include <phosphor-animation/include/PhosphorAnimation/MotionSpec.h>
Public Attributes | |
| Profile | profile |
| IMotionClock * | clock = nullptr |
| Non-owning; non-null required. | |
| RetargetPolicy | retargetPolicy = RetargetPolicy::PreserveVelocity |
| std::function< void(const T &)> | onValueChanged |
| Fired every advance() that changes value(). | |
| std::function< void()> | onComplete |
| Fired once on completion. Not fired on cancel(). | |
Runtime call-site bundle for starting an AnimatedValue<T>.
Profile is the serializable config surface; MotionSpec adds per-animation runtime concerns: clock, retarget policy, callbacks. Clock is non-owning (outlives all AnimatedValues). Callbacks MUST NOT throw — the library does not catch exceptions out of them.
| IMotionClock* PhosphorAnimation::MotionSpec< T >::clock = nullptr |
Non-owning; non-null required.
| std::function<void()> PhosphorAnimation::MotionSpec< T >::onComplete |
Fired once on completion. Not fired on cancel().
| std::function<void(const T&)> PhosphorAnimation::MotionSpec< T >::onValueChanged |
Fired every advance() that changes value().
Wire damage/invalidation here. When using AnimationController, prefer its virtual hooks instead.
| Profile PhosphorAnimation::MotionSpec< T >::profile |
| RetargetPolicy PhosphorAnimation::MotionSpec< T >::retargetPolicy = RetargetPolicy::PreserveVelocity |