Shared Escape menu for non-gameplay screens.
More...
#include <SystemMenuOverlay.hpp>
|
| void | open () |
| | Open the system menu on its root page.
|
| void | close () |
| | Close the menu and discard transient settings state.
|
| bool | isOpen () const |
| | True while the overlay is active.
|
| void | handleEscape (const UserSettings &settings) |
| | Handle Escape while the overlay is active.
|
| bool | consumeEvent (const SDL_Event &event) |
| | Consume input events while the overlay owns focus.
|
| SystemMenuOverlayResult | render (UserSettings &settings, std::string_view settingsPath) |
| | Draw the overlay and return any commands emitted this frame.
|
Shared Escape menu for non-gameplay screens.
◆ close()
| void SystemMenuOverlay::close |
( |
| ) |
|
Close the menu and discard transient settings state.
◆ consumeEvent()
| bool SystemMenuOverlay::consumeEvent |
( |
const SDL_Event & | event | ) |
|
Consume input events while the overlay owns focus.
◆ handleEscape()
| void SystemMenuOverlay::handleEscape |
( |
const UserSettings & | settings | ) |
|
Handle Escape while the overlay is active.
◆ isOpen()
| bool SystemMenuOverlay::isOpen |
( |
| ) |
const |
|
nodiscard |
True while the overlay is active.
◆ open()
| void SystemMenuOverlay::open |
( |
| ) |
|
Open the system menu on its root page.
◆ render()
Draw the overlay and return any commands emitted this frame.
◆ confirm_
◆ open_
| bool SystemMenuOverlay::open_ = false |
|
private |
◆ settingsEditor_
The documentation for this class was generated from the following files: