mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
17 lines
404 B
C++
17 lines
404 B
C++
#include <apps/apps_container.h>
|
|
#include <escher/animation_timer.h>
|
|
#include <escher/timer_manager.h>
|
|
|
|
|
|
void AnimationTimer::setAnimated(Animated * animated) {
|
|
m_animated = animated;
|
|
TimerManager::AddTimer(this);
|
|
}
|
|
|
|
void AnimationTimer::removeAnimated(Animated * animated) {
|
|
if (m_animated == animated || animated == nullptr) {
|
|
m_animated = nullptr;
|
|
TimerManager::RemoveTimer(this);
|
|
}
|
|
}
|