Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
RetargetPolicy.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6namespace PhosphorAnimation {
7
17
18} // namespace PhosphorAnimation
Definition AnimatedValue.h:31
RetargetPolicy
How an in-flight AnimatedValue<T> reshapes on retarget().
Definition RetargetPolicy.h:9
@ ResetVelocity
Zero velocity on retarget; motion restarts from rest toward the new target.
@ PreserveVelocity
Carry velocity across the segment boundary, re-scaled to the new distance. Default.
@ PreservePosition
Position-continuous only; velocity treatment delegated to the curve's natural behaviour.