10#include <PhosphorAnimation/phosphoranimation_export.h>
35PHOSPHORANIMATION_EXPORT std::optional<MotionSpec<QRectF>>
Abstract clock interface for the motion runtime.
Definition IMotionClock.h:18
Configuration for a single animation event.
Definition Profile.h:33
PHOSPHORANIMATION_EXPORT std::optional< MotionSpec< QRectF > > createSnapSpec(const QRectF &oldFrame, const QRectF &newFrame, const SnapParams ¶ms, IMotionClock *clock)
Returns nullopt when clock is null, newFrame is degenerate, or the move is below threshold with no si...
constexpr qreal kSnapSizeEpsilonPx
Definition SnapPolicy.h:30
Definition AnimatedValue.h:31
constexpr qreal kRectSizeEpsilonPx
Sub-pixel epsilon for rect size-change detection.
Definition Interpolate.h:26
RetargetPolicy
How an in-flight AnimatedValue<T> reshapes on retarget().
Definition RetargetPolicy.h:9
@ PreserveVelocity
Carry velocity across the segment boundary, re-scaled to the new distance. Default.
Definition SnapPolicy.h:25
RetargetPolicy retargetPolicy
Definition SnapPolicy.h:27
Profile profile
Definition SnapPolicy.h:26