cpp-project-template 0.0.1.0
C++ Project Template
Loading...
Searching...
No Matches
cpp_proj::App Class Reference

This class is the entry point for this wxWidgets app. More...

#include <App.hpp>

Inheritance diagram for cpp_proj::App:
Collaboration diagram for cpp_proj::App:

Public Member Functions

bool OnInit () override
 The wxWidgets equivalent of a main procedure.
 App ()
 ~App () override=default
 App (const App &)=delete
Appoperator= (const App &)=delete
 App (App &&)=delete
Appoperator= (App &&)=delete
const wxImage & getLogoImg () const
 Get the Logo Img object.

Private Attributes

const wxString logoPathRel_ = "../images/logo.png"
wxString appPath_
wxImage logoImg_
MainFrameframe_

Static Private Attributes

static constexpr int WINDOW_POS_X = 50
static constexpr int WINDOW_POS_Y = 50
static constexpr int WINDOW_WIDTH = 1200
static constexpr int WINDOW_HEIGHT = 800
static constexpr int SPLASHSCREEN_DURATION_MS = 3000

Detailed Description

This class is the entry point for this wxWidgets app.

Constructor & Destructor Documentation

◆ App() [1/3]

App::App ( )

◆ ~App()

cpp_proj::App::~App ( )
overridedefault

◆ App() [2/3]

cpp_proj::App::App ( const App & )
delete

◆ App() [3/3]

cpp_proj::App::App ( App && )
delete

Member Function Documentation

◆ getLogoImg()

const wxImage & cpp_proj::App::getLogoImg ( ) const
inline

Get the Logo Img object.

Returns
The logo image.

◆ OnInit()

bool App::OnInit ( )
override

The wxWidgets equivalent of a main procedure.

Note
https://docs.wxwidgets.org/3.0/overview_app.html
Returns
True if processing should continue, false otherwise.

◆ operator=() [1/2]

App & cpp_proj::App::operator= ( App && )
delete

◆ operator=() [2/2]

App & cpp_proj::App::operator= ( const App & )
delete

Member Data Documentation

◆ appPath_

wxString cpp_proj::App::appPath_
private

◆ frame_

MainFrame* cpp_proj::App::frame_
private

◆ logoImg_

wxImage cpp_proj::App::logoImg_
private

◆ logoPathRel_

const wxString cpp_proj::App::logoPathRel_ = "../images/logo.png"
private

◆ SPLASHSCREEN_DURATION_MS

int cpp_proj::App::SPLASHSCREEN_DURATION_MS = 3000
staticconstexprprivate

◆ WINDOW_HEIGHT

int cpp_proj::App::WINDOW_HEIGHT = 800
staticconstexprprivate

◆ WINDOW_POS_X

int cpp_proj::App::WINDOW_POS_X = 50
staticconstexprprivate

◆ WINDOW_POS_Y

int cpp_proj::App::WINDOW_POS_Y = 50
staticconstexprprivate

◆ WINDOW_WIDTH

int cpp_proj::App::WINDOW_WIDTH = 1200
staticconstexprprivate

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