31 enum AnimationState : uint32_t
35 SwitchingOff = 1 << 1,
36 HighlightingOn = 1 << 2,
37 HighlightingOff = 1 << 3,
45 _u::Color BackgroundColor;
47 ColorBlock() : KnobColor(_u::Color::get_white()), BackgroundColor(_u::Color::get_white()) {}
48 ColorBlock(_u::Color p_KnobColor, _u::Color p_BackgroundColor) : KnobColor(p_KnobColor), BackgroundColor(p_BackgroundColor) {}
62 float m_SwitchAnimationSmooth;
63 float m_HorizontalStretchAmount;
64 float m_VerticalStretchAmount;
66 uint32_t m_AnimationState;
68 float m_HighlightAmount;
69 float m_DisabledAmount;
70 float m_OriginalKnobWidth;
71 float m_OriginalKnobHeight;
73 ColorBlock m_OnColors;
74 ColorBlock m_OffColors;
75 ColorBlock m_OnHighlightedColors;
76 ColorBlock m_OffHighlightedColors;
77 ColorBlock m_DisabledColors;
121 void LerpPosition(
float p_SwitchAmount);
124 void LerpStretch(
float p_SwitchAmount);
129 void LerpColors(
float p_SwitchAmount,
float p_HighlightAmount,
float p_DisabledAmount);
135 _u::Color LerpColor(
float p_SwitchAmount,
float p_HighlightAmount,
float p_DisabledAmount,
const _v::Delegate<_u::Color(ColorBlock&)>& p_Delegate);