Ember
Loading...
Searching...
No Matches
App.h
Go to the documentation of this file.
1
#pragma once
2
11
12
#include <wx/wx.h>
13
14
class
MainFrame
;
15
32
class
App
:
public
wxApp {
33
public
:
39
App
() :
m_frame
(nullptr),
m_screenWidth
(0),
m_screenHeight
(0) {}
40
48
bool
OnInit
()
override
;
49
57
int
OnExit
()
override
;
58
59
private
:
60
MainFrame
*
m_frame
;
61
int
m_screenWidth
;
62
int
m_screenHeight
;
63
};
64
65
wxDECLARE_APP
(
App
);
wxDECLARE_APP
wxDECLARE_APP(App)
App
Main application class for EmberForge.
Definition
App.h:32
App::OnInit
bool OnInit() override
Application initialization.
Definition
App.cpp:11
App::m_screenWidth
int m_screenWidth
Screen width at startup.
Definition
App.h:61
App::m_frame
MainFrame * m_frame
Pointer to main frame window.
Definition
App.h:60
App::m_screenHeight
int m_screenHeight
Screen height at startup.
Definition
App.h:62
App::OnExit
int OnExit() override
Application cleanup.
Definition
App.cpp:49
App::App
App()
Default constructor.
Definition
App.h:39
MainFrame
Main application window for EmberForge.
Definition
MainFrame.h:67
EmberForge
include
App
App.h
Generated by
Release_1_14_0