Snap-animation policy gate — decides if a transition merits animation and builds a MotionSpec<QRectF> for AnimatedValue::start().
More...
|
| 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 size change.
|
| |
Snap-animation policy gate — decides if a transition merits animation and builds a MotionSpec<QRectF> for AnimatedValue::start().
◆ createSnapSpec()
| PHOSPHORANIMATION_EXPORT std::optional< MotionSpec< QRectF > > PhosphorAnimation::SnapPolicy::createSnapSpec |
( |
const QRectF & |
oldFrame, |
|
|
const QRectF & |
newFrame, |
|
|
const SnapParams & |
params, |
|
|
IMotionClock * |
clock |
|
) |
| |
Returns nullopt when clock is null, newFrame is degenerate, or the move is below threshold with no size change.
Otherwise returns a MotionSpec with no callbacks (caller wires those).
◆ kSnapSizeEpsilonPx