You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
442 B
C++

#ifndef WXAPP_HPP_
#define WXAPP_HPP_
#include "wxmain.hpp"
#include <wx/app.h>
#include <wx/font.h>
class MainApp : public wxApp
{
public:
virtual bool OnInit() final {
wxFont::AddPrivateFont("./Hack-Regular.ttf");
m_main_frame = new MainFrame;
m_main_frame->Show(true);
SetTopWindow(m_main_frame);
return true;
}
private:
MainFrame *m_main_frame = nullptr;
};
#endif // WXAPP_HPP_