Skip to content

Class evab::Boxy

ClassList > 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:

  • TScreen Screen type to use
  • TFont Font type to use
  • Args Additional arguments for screen constructor

Parameters:

  • aGround Base element to display
  • args Arguments 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:

  • aKey Key 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:

  • aName Label text
  • aValue Integer value to show


The documentation for this class was generated from the following file src/evabBoxy.h