Class evab::Boxy¶
Main application controller managing screen, input, and modal overlays. More...
#include <evabBoxy.h>
Inherits the following classes: eva::IHandler
Public Static Functions¶
| Type | Name |
|---|---|
| void | Begin (ElementBase * aGround, Args &&... args) Initializes the Boxy system with a screen and ground element. |
| Screen * | GetScreen () Gets the current screen pointer. |
| Boxy * | Instance () Gets the singleton instance. |
| void | Key (Keys aKey) Forwards key events to the ground element. |
| void | Message (const __FlashStringHelper *, const char * aText) Displays a temporary modal with a named integer value. |
Detailed Description¶
Boxy is a singleton that provides global access to the display system, manages the current screen, and handles modal popups.
Public Static Functions Documentation¶
function Begin¶
Initializes the Boxy system with a screen and ground element.
template<class TScreen, class TFont, typename... Args>
static inline void evab::Boxy::Begin (
ElementBase * aGround,
Args &&... args
)
Template parameters:
TScreenScreen type to useTFontFont type to useArgsAdditional arguments for screen constructor
Parameters:
aGroundBase element to displayargsArguments forwarded to screen constructor
function GetScreen¶
Gets the current screen pointer.
static Screen * evab::Boxy::GetScreen ()
Returns:
Pointer to current screen, or nullptr if modal is active
function Instance¶
Gets the singleton instance.
static Boxy * evab::Boxy::Instance ()
Returns:
Pointer to the Boxy singleton
function Key¶
Forwards key events to the ground element.
static void evab::Boxy::Key (
Keys aKey
)
Parameters:
aKeyKey code to process
function Message¶
Displays a temporary modal with a named integer value.
static void evab::Boxy::Message (
const __FlashStringHelper *,
const char * aText
)
Parameters:
aNameLabel textaValueInteger value to show
The documentation for this class was generated from the following file src/evabBoxy.h