ui::easing¶
Namespace-scope declarations of ui::easing from the rendering headers.
Named CubicBezier curves and the CPU-side evaluator.
Functions¶
evaluate¶
Header: winui/render/CubicBezier.hpp.
Evaluates c at elapsed-time fraction x, returning the progress fraction (the curve's y at the t where its x equals x), for a control that eases a value itself, such as Expander's content slide or the toggle knob. x is clamped to 0..1.
x(t) is inverted by 24 steps of bisection, which puts t within 2^-24, far finer than any frame can show.
Constants¶
| Name | Type | Value | |
|---|---|---|---|
Linear |
CubicBezier |
{0.0f, 0.0f, 1.0f, 1.0f} |
A straight ramp: progress equals elapsed-time fraction. |
ControlFastOutSlowIn |
CubicBezier |
{0.0f, 0.0f, 0.0f, 1.0f} |
A pure decelerate, fast at the start and slow at the end, used by most themed motion. |