UI Thread: Manages multiple view trees ("Screen") and draws the active one at the provided refresh rate.
More...
#include <ScreenManager.h>
|
miosix::Thread * | thread = nullptr |
| Gives access to the thread object.
|
|
std::atomic< bool > | stopFlag {false} |
|
std::atomic< bool > | running {false} |
|
UI Thread: Manages multiple view trees ("Screen") and draws the active one at the provided refresh rate.
Definition at line 41 of file ScreenManager.h.
◆ ScreenManager()
Boardcore::ScreenManager::ScreenManager |
( |
mxgui::DisplayManager & | display, |
|
|
unsigned int | refreshRate ) |
|
inline |
◆ addScreen()
void Boardcore::ScreenManager::addScreen |
( |
uint8_t | id, |
|
|
View * | root ) |
|
inline |
◆ getDrawingContext()
mxgui::DrawingContext & Boardcore::ScreenManager::getDrawingContext |
( |
| ) |
|
|
inline |
◆ getScreen()
uint8_t Boardcore::ScreenManager::getScreen |
( |
| ) |
|
|
inline |
◆ onButtonEvent()
void Boardcore::ScreenManager::onButtonEvent |
( |
ButtonEvent | press | ) |
|
|
inline |
◆ run()
void Boardcore::ScreenManager::run |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The thread that will be spawned just calls this function. Override it to implement your logic. Remember to frequently check for shouldStop() to see if you should terminate the execution of the thread.
Implements Boardcore::ActiveObject.
Definition at line 72 of file ScreenManager.h.
◆ showScreen()
void Boardcore::ScreenManager::showScreen |
( |
uint8_t | id | ) |
|
|
inline |
The documentation for this class was generated from the following file: