ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::UIAnimation::Track< T > Struct Template Reference

Concrete typed track: start/end pair plus a setter. More...

#include <AnimPrimitives.hpp>

Inheritance diagram for ZenitUI::UIAnimation::Track< T >:
[legend]

Public Member Functions

 Track (T s, T e, std::function< void(Layout *, T)> setter, TransitionFunction tr)
void apply (float raw_t, Layout *target) override
 Advance the track to normalized time raw_t.

Public Attributes

T start_val
T end_val
std::function< void(Layout *, T)> setter
TransitionFunction transition

Detailed Description

template<typename T>
struct ZenitUI::UIAnimation::Track< T >

Concrete typed track: start/end pair plus a setter.

Member Function Documentation

◆ apply()

template<typename T>
void ZenitUI::UIAnimation::Track< T >::apply ( float raw_t,
Layout * target )
inlineoverridevirtual

Advance the track to normalized time raw_t.

Implements ZenitUI::UIAnimation::TrackBase.


The documentation for this struct was generated from the following file: