|
ZenitUI
Retained-mode C++20 UI framework
|
Internal helpers; called from AnimationPlayer and from Layout::draw. More...
Functions | |
| void | syncRefs (std::vector< ActiveCssAnimation > &anims, const std::vector< AnimationRef > &refs, double now) |
| Synchronize the active-animation list with a new set of references. | |
| void | tickIncremental (std::vector< ActiveCssAnimation > &anims, float dt, const Theme &theme) |
Advance active CSS animations incrementally by dt seconds. | |
| void | tickAbsolute (std::vector< ActiveCssAnimation > &anims, double now, const Theme &theme) |
Update active CSS animations against absolute timestamp now. | |
| void | overlayCssStyle (Style &out, const std::vector< ActiveCssAnimation > &anims, const Theme &theme) |
| Overlay active CSS keyframe frames onto a sparse Style. | |
| void | overlayCssComputed (ComputedStyle &out, const std::vector< ActiveCssAnimation > &anims, const Theme &theme) |
| Overlay active CSS keyframe frames onto a ComputedStyle. | |
Internal helpers; called from AnimationPlayer and from Layout::draw.
| void ZenitUI::Anim::syncRefs | ( | std::vector< ActiveCssAnimation > & | anims, |
| const std::vector< AnimationRef > & | refs, | ||
| double | now ) |
Synchronize the active-animation list with a new set of references.
Removes entries whose name is no longer in refs, updates parameters on entries that are still referenced, and creates new entries (starting at now) for names that were just added.