45 : m_impl(that.m_impl == NULL ? NULL : that.m_impl->
clone())
53 : m_impl(that.
clone())
92 return m_impl->is_finished();
104 return m_impl->update(dt);
113 m_impl->on_finished(f);
Common interface for all tweeners.
Function object that clones a pointer.
Common interface for all tweeners.
A tweener makes a value to evolve through time from a initial value to an end value according to a gi...
tweener()
Default constructor.
bool is_finished() const
Tell if the tweener has reached his total duration.
void swap(tweener &that)
Swap this instance with a given instance.
double update(double dt)
Update the tweener of a given amount of time.
std::function< void()> finish_callback
The type of the function called to notify the end of the tweener.
void on_finished(finish_callback f)
Execute the callbacks notifying about the finish of the tweener.
tweener & operator=(const tweener &that)
Assignment operator.
void swap(claw::graphic::gif &a, claw::graphic::gif &b)
Swap the content of two gifs.
A tweener makes a value to evolve through time from a initial value to an end value according to a gi...