mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[escher/container] Inline activeApp() accessor
This commit is contained in:
committed by
EmilieNumworks
parent
1f06819974
commit
443f974cbb
@@ -29,7 +29,7 @@ public:
|
||||
Container& operator=(Container&& other) = delete;
|
||||
virtual void * currentAppBuffer() = 0;
|
||||
virtual void run();
|
||||
App * activeApp();
|
||||
App * activeApp() { return m_activeApp; }
|
||||
virtual bool dispatchEvent(Ion::Events::Event event) override;
|
||||
virtual bool switchTo(App::Snapshot * snapshot);
|
||||
protected:
|
||||
|
||||
@@ -40,10 +40,6 @@ bool Container::switchTo(App::Snapshot * snapshot) {
|
||||
return true;
|
||||
}
|
||||
|
||||
App * Container::activeApp() {
|
||||
return m_activeApp;
|
||||
}
|
||||
|
||||
bool Container::dispatchEvent(Ion::Events::Event event) {
|
||||
if (event == Ion::Events::TimerFire ) {
|
||||
window()->redraw();
|
||||
|
||||
Reference in New Issue
Block a user