#include <PhosphorAnimation/Interpolate.h>#include <PhosphorAnimation/MotionSpec.h>#include <PhosphorAnimation/Profile.h>#include <PhosphorAnimation/RetargetPolicy.h>#include <PhosphorAnimation/phosphoranimation_export.h>#include <QRectF>#include <optional>Go to the source code of this file.
Classes | |
| struct | PhosphorAnimation::SnapPolicy::SnapParams |
Namespaces | |
| namespace | PhosphorAnimation |
| namespace | PhosphorAnimation::SnapPolicy |
| Snap-animation policy gate — decides if a transition merits animation and builds a MotionSpec<QRectF> for AnimatedValue::start(). | |
Functions | |
| PHOSPHORANIMATION_EXPORT std::optional< MotionSpec< QRectF > > | PhosphorAnimation::SnapPolicy::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. | |
Variables | |
| constexpr qreal | PhosphorAnimation::SnapPolicy::kSnapSizeEpsilonPx = kRectSizeEpsilonPx |