EX-Display
EX-Display
Loading...
Searching...
No Matches
ScreenManager Class Reference

Class to manage all EX-Display screens. More...

#include <ScreenManager.h>

Collaboration diagram for ScreenManager:
[legend]

Public Member Functions

 ScreenManager ()
 Constructor for the ScreenManager.
 
ScreenupdateScreen (uint8_t screenId)
 Update a Screen, adds a new one if it doesn't exist.
 
ScreengetFirstScreen ()
 Get the first Screen instance in the list.
 
ScreengetScreenById (uint8_t screenId)
 Get the Screen with the specified ID.
 
ScreengetPreviousScreen (Screen *screen)
 Get the previous screen in the list (sorted by ID)
 
ScreengetNextScreen (Screen *screen)
 Get the next screen in the list (sorted by ID)
 
uint8_t getMinScreenId ()
 Get the lowest Screen ID in the list.
 
uint8_t getMaxScreenId ()
 Get the highest Screen ID in the list.
 
void setLogger (Logger *logger)
 Set the Logger instance.
 
 ~ScreenManager ()
 Destructor for the ScreenManager.
 

Private Attributes

Screen_firstScreen
 
Logger_logger
 

Detailed Description

Class to manage all EX-Display screens.

Constructor & Destructor Documentation

◆ ScreenManager()

ScreenManager::ScreenManager ( )

Constructor for the ScreenManager.

◆ ~ScreenManager()

ScreenManager::~ScreenManager ( )

Destructor for the ScreenManager.

Here is the call graph for this function:

Member Function Documentation

◆ getFirstScreen()

Screen * ScreenManager::getFirstScreen ( )

Get the first Screen instance in the list.

Returns
Pointer to the first Screen instance
Here is the caller graph for this function:

◆ getMaxScreenId()

uint8_t ScreenManager::getMaxScreenId ( )

Get the highest Screen ID in the list.

Returns
Highest Screen ID
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMinScreenId()

uint8_t ScreenManager::getMinScreenId ( )

Get the lowest Screen ID in the list.

Returns
Lowest Screen ID
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNextScreen()

Screen * ScreenManager::getNextScreen ( Screen screen)

Get the next screen in the list (sorted by ID)

Parameters
screenPointer to the current screen
Returns
Pointer to the next Screen
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPreviousScreen()

Screen * ScreenManager::getPreviousScreen ( Screen screen)

Get the previous screen in the list (sorted by ID)

Parameters
screenPointer to the current screen
Returns
Pointer to the previous Screen
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getScreenById()

Screen * ScreenManager::getScreenById ( uint8_t  screenId)

Get the Screen with the specified ID.

Parameters
screenIdID of the Screen instance to retrieve
Returns
Pointer to the Screen instance
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLogger()

void ScreenManager::setLogger ( Logger logger)

Set the Logger instance.

Parameters
loggerPointer to the Logger
Here is the caller graph for this function:

◆ updateScreen()

Screen * ScreenManager::updateScreen ( uint8_t  screenId)

Update a Screen, adds a new one if it doesn't exist.

Parameters
screenIdID of the Screen
Returns
Pointer to the new Screen
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _firstScreen

Screen* ScreenManager::_firstScreen
private

◆ _logger

Logger* ScreenManager::_logger
private

The documentation for this class was generated from the following files: