rpcsx/rpcs3/Gui/FrameBase.h

27 lines
582 B
C
Raw Normal View History

#pragma once
2016-02-01 22:46:27 +01:00
struct FrameBase : public wxFrame
{
2016-02-01 22:46:27 +01:00
const std::string ini_name;
2016-02-01 22:46:27 +01:00
protected:
FrameBase(
wxWindow* parent,
wxWindowID id = wxID_ANY,
2016-02-01 22:46:27 +01:00
const wxString& frame_name = "UnknownFrame",
const std::string& ini_name = {},
wxSize defsize = wxDefaultSize,
wxPoint defposition = wxDefaultPosition,
2016-02-01 22:46:27 +01:00
long style = wxDEFAULT_FRAME_STYLE);
~FrameBase()
{
}
2016-02-01 22:46:27 +01:00
void SetSizerAndFit(wxSizer* sizer, bool deleteOld = true, bool loadinfo = true);
void LoadInfo();
void OnMove(wxMoveEvent& event);
void OnResize(wxSizeEvent& event);
void OnClose(wxCloseEvent& event);
};