mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[escher] Rework of timers and bigger text in toolboxes
This commit is contained in:
15
escher/src/animation_timer.cpp
Normal file
15
escher/src/animation_timer.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <apps/apps_container.h>
|
||||
#include <escher/animation_timer.h>
|
||||
|
||||
|
||||
void AnimationTimer::setAnimated(Animated * animated) {
|
||||
m_animated = animated;
|
||||
AppsContainer::sharedAppsContainer()->addTimer(this);
|
||||
}
|
||||
|
||||
void AnimationTimer::removeAnimated(Animated * animated) {
|
||||
if (m_animated == animated || animated == nullptr) {
|
||||
m_animated = nullptr;
|
||||
AppsContainer::sharedAppsContainer()->removeTimer(this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user