 |
BARE2D
|
|
This is meant to be a parent for other, app-specific, screen classes, which is essentially where all ...
~ScreenList()
Destroys the screen list, "taking care" of the screen pointers it owns.
void moveToPreviousScreen()
Moves to the previous screen. Similar to moveToNextScreen, in that it makes sure everything's good!
std::vector< Screen * > m_screens
void addScreen(Screen *screen)
Adds a screen to the list of screens, AKA the screen list. Requires non-nullptr. Also,...
Screen * m_previousScreen
void addEntryScreen(Screen *screen)
Adds a screen, and sets the current screen to this one.
Holds and connects all of the screens used in the program in a list. Keeps track of the previous scre...
void moveToNextScreen()
Moves to the next screen, updates needed variables. Also, exits old screen and enters new one.
Screen * getCurrentScreen()