Main application class for EmberForge.
More...
#include <App.h>
|
| | App () |
| | Default constructor.
|
| bool | OnInit () override |
| | Application initialization.
|
| int | OnExit () override |
| | Application cleanup.
|
Main application class for EmberForge.
App is the wxWidgets application entry point. It handles:
- Application initialization and shutdown
- Creating the main frame window
- Loading user preferences
- Setting up logging
The application lifecycle:
- wxWidgets calls OnInit() at startup
- OnInit() creates MainFrame and shows it
- Event loop runs until window closes
- OnExit() performs cleanup
Definition at line 32 of file App.h.
◆ App()
Default constructor.
Initializes member variables to safe defaults.
Definition at line 39 of file App.h.
◆ OnExit()
Application cleanup.
- Returns
- Exit code (0 for success)
Called by wxWidgets when the application is shutting down. Saves preferences and performs cleanup.
Definition at line 49 of file App.cpp.
◆ OnInit()
Application initialization.
- Returns
- true if initialization succeeded, false to abort
Called by wxWidgets when the application starts. Creates the main frame window, loads preferences, and initializes subsystems.
Definition at line 11 of file App.cpp.
◆ m_frame
Pointer to main frame window.
Definition at line 60 of file App.h.
◆ m_screenHeight
Screen height at startup.
Definition at line 62 of file App.h.
◆ m_screenWidth
Screen width at startup.
Definition at line 61 of file App.h.
The documentation for this class was generated from the following files: