Class for each screen as received from the EXRAIL SCREEN() command Each Screen instance contains a linked list of ScreenRow instances Screen instances are contained in a linked list managed separately by the ScreenManager.
More...
#include <Screen.h>
Class for each screen as received from the EXRAIL SCREEN() command Each Screen instance contains a linked list of ScreenRow instances Screen instances are contained in a linked list managed separately by the ScreenManager.
◆ Screen()
Screen::Screen |
( |
uint8_t |
screenId | ) |
|
Constructor for each Screen instance.
- Parameters
-
screenId | ID of this screen as set in EXRAIL SCREEN() |
◆ ~Screen()
Destructor for the Screen instance Will automatically clean up the associated ScreenRow list.
◆ _addScreenRow()
void Screen::_addScreenRow |
( |
uint8_t |
screenRowId, |
|
|
const char * |
text |
|
) |
| |
|
private |
◆ _deleteScreenRow()
void Screen::_deleteScreenRow |
( |
ScreenRow * |
screenRow | ) |
|
|
private |
Delete the specified ScreenRow and update the list accordingly.
- Parameters
-
screenRow | Pointer to the ScreenRow instance to delete |
◆ getFirstScreenRow()
Get the first ScreenRow instance in the list.
- Returns
- Pointer to the first ScreenRow instance
◆ getId()
uint8_t Screen::getId |
( |
| ) |
|
Get the ID for this screen instance.
- Returns
- Screen ID
◆ getNext()
Get the next Screen instance in the list.
- Returns
- Pointer to the next Screen instance
◆ getScreenRowById()
ScreenRow * Screen::getScreenRowById |
( |
uint8_t |
screenRowId | ) |
|
Get the ScreenRow instance at the specified ID.
- Parameters
-
- Returns
- Pointer to the ScreenRow instance at the ID
◆ setLogger()
void Screen::setLogger |
( |
Logger * |
logger | ) |
|
Set the Logger instance.
- Parameters
-
◆ setNext()
void Screen::setNext |
( |
Screen * |
screen | ) |
|
Set the next Screen instance in the list.
- Parameters
-
screen | Pointer to the next Screen instance |
◆ updateScreenRow()
void Screen::updateScreenRow |
( |
uint8_t |
screenRowId, |
|
|
const char * |
text |
|
) |
| |
Update the specified ScreenRow, or create it if it doesn't exist This will automatically maintain the linked list of ScreenRow instances Setting text to an empty string "" will delete the associated row from the list.
- Parameters
-
◆ _firstScreenRow
◆ _logger
◆ _next
◆ _screenId
uint8_t Screen::_screenId |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/EX-Display/EX-Display/Screen.h
- /home/runner/work/EX-Display/EX-Display/Screen.cpp