ASAPCabinetFE
 
Loading...
Searching...
No Matches
App Class Reference

Main application controller for ASAPCabinetFE. More...

#include <app.h>

+ Inheritance diagram for App:
+ Collaboration diagram for App:

Public Member Functions

ISoundManagergetSoundManager () override
 
 App (const std::string &configPath)
 Constructs an App instance.
 
 ~App ()
 Destroys the App instance.
 
void run ()
 Runs the main application loop.
 
void reloadFont (bool isStandalone=false) override
 Reloads the font resource.
 
void reloadWindows () override
 Reloads window configurations.
 
void reloadAssetsAndRenderers () override
 Reloads assets and renderers.
 
void reloadTablesAndTitle () override
 Reloads table data and window title.
 
void reloadOverlaySettings () override
 Reloads overlay settings.
 

Detailed Description

Main application controller for ASAPCabinetFE.

Main application class (forward declaration).

This class implements the IAppCallbacks interface to manage the application lifecycle, including initialization, event handling, updating, rendering, and cleanup. It uses DependencyFactory to create and integrate components like IWindowManager, ImGuiManager, IInputManager, IRenderer, and PlayfieldOverlay, and handles table data, configuration, and UI interactions.

Represents the main application instance of ASAPCabinetFE, used as a dependency in components like ConfigUI. This forward declaration allows the header to reference App without including its full definition.

Constructor & Destructor Documentation

◆ App()

App::App ( const std::string &  configPath)

Constructs an App instance.

Initializes the application with the specified configuration file path.

Parameters
configPathThe file path to the configuration file.

◆ ~App()

App::~App ( )

Destroys the App instance.

Cleans up all managed components and resources.

Member Function Documentation

◆ getSoundManager()

ISoundManager * App::getSoundManager ( )
overridevirtual

Implements IAppCallbacks.

◆ reloadAssetsAndRenderers()

void App::reloadAssetsAndRenderers ( )
overridevirtual

Reloads assets and renderers.

Reinitializes asset manager and renderer with current settings and table data.

Implements IAppCallbacks.

+ Here is the call graph for this function:

◆ reloadFont()

void App::reloadFont ( bool  isStandalone = false)
overridevirtual

Reloads the font resource.

Reloads the TTF font used for text rendering, optionally for standalone mode.

Parameters
isStandaloneTrue for standalone configuration mode, false for main app mode.

Implements IAppCallbacks.

◆ reloadOverlaySettings()

void App::reloadOverlaySettings ( )
overridevirtual

Reloads overlay settings.

Updates the playfield overlay with current application settings.

Implements IAppCallbacks.

◆ reloadTablesAndTitle()

void App::reloadTablesAndTitle ( )
overridevirtual

Reloads table data and window title.

Reloads table data from the table loader and updates the window title.

Implements IAppCallbacks.

◆ reloadWindows()

void App::reloadWindows ( )
overridevirtual

Reloads window configurations.

Updates SDL windows and renderers using current settings.

Implements IAppCallbacks.

+ Here is the caller graph for this function:

◆ run()

void App::run ( )

Runs the main application loop.

Executes the application’s main loop, handling events, updating state, and rendering.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: