IScreen wrapper around the shared tabbed settings editor.
More...
#include <SettingsScreen.hpp>
|
| bool | init (AppContext &ctx) |
| | Bind app-owned dependencies and open the settings editor.
|
| SDL_AppResult | event (SDL_Event *event) override |
| | Handle an incoming SDL event.
|
| SDL_AppResult | iterate () override |
| | Update the screen state and render the next frame.
|
| void | quit () override |
| | Perform any necessary cleanup before the screen is destroyed.
|
| bool | consumeBackRequest () |
| | True if the user requested returning to the previous screen, then clear that request.
|
| virtual | ~IScreen ()=default |
| virtual void | shutdownAfterRenderer () |
| | Perform cleanup that must happen after the App-owned renderer shuts down.
|
IScreen wrapper around the shared tabbed settings editor.
◆ consumeBackRequest()
| bool SettingsScreen::consumeBackRequest |
( |
| ) |
|
True if the user requested returning to the previous screen, then clear that request.
◆ event()
| SDL_AppResult SettingsScreen::event |
( |
SDL_Event * | event | ) |
|
|
overridevirtual |
Handle an incoming SDL event.
- Parameters
-
| event | The SDL event to process. |
- Returns
- SDL_APP_CONTINUE to keep running, SDL_APP_FAILURE to exit.
Implements IScreen.
◆ init()
Bind app-owned dependencies and open the settings editor.
◆ iterate()
| SDL_AppResult SettingsScreen::iterate |
( |
| ) |
|
|
overridevirtual |
Update the screen state and render the next frame.
- Returns
- SDL_APP_CONTINUE to keep running, SDL_APP_FAILURE to exit.
Implements IScreen.
◆ quit()
| void SettingsScreen::quit |
( |
| ) |
|
|
overridevirtual |
Perform any necessary cleanup before the screen is destroyed.
Implements IScreen.
◆ editor
Shared settings page implementation.
◆ pendingBack
| bool SettingsScreen::pendingBack = false |
|
private |
Set when the page should close, cleared by App.
◆ renderer
◆ settings
Live user settings; not owned.
◆ settingsPath
| std::string_view SettingsScreen::settingsPath |
|
private |
Save path for user settings.
◆ window
| SDL_Window* SettingsScreen::window = nullptr |
|
private |
Application window; not owned.
The documentation for this class was generated from the following files: