void executeOnMainThread(const Function< void()> &function)
Posts a callback to be executed on main thread.
wxDECLARE_EVENT(MAIN_LOOP_TYPE, Sph::MainLoopEvent)
void(wxEvtHandler::* MainLoopEventFunction)(Sph::MainLoopEvent &)
Custom event holding a callback.
MainLoopEvent(const Function< void()> &callback)
MainLoopEvent(const MainLoopEvent &evt)