psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::detail::TweenAnimation Class Reference

#include <Animation.hpp>

Inheritance diagram for psychic_ui::detail::TweenAnimation:
psychic_ui::Animation

Public Member Functions

bool advance (std::chrono::nanoseconds now) override
void finish () override
Public Member Functions inherited from psychic_ui::Animation
 Animation (const Animation &)=delete
Animation & operator= (const Animation &)=delete
 Animation (Animation &&)=delete
Animation & operator= (Animation &&)=delete

Public Attributes

Tween tween {}
std::function< void(const Channels &)> update {}

Detailed Description

A tween the window ticks, for Animated and Div::animate

Member Function Documentation

◆ advance()

bool psychic_ui::detail::TweenAnimation::advance ( std::chrono::nanoseconds now)
overridevirtual

Move to where it is at now

Returns
Whether it still moves; the window drops it otherwise

Implements psychic_ui::Animation.

◆ finish()

void psychic_ui::detail::TweenAnimation::finish ( )
overridevirtual

Go to the end at once (reduced motion)

Implements psychic_ui::Animation.


The documentation for this class was generated from the following files: