SPH
LauncherGui.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "gui/Controller.h"
4 #include "gui/MainLoop.h"
5 #include <wx/app.h>
6 
7 
9 
10 class MainWindow;
11 
12 class App : public wxApp {
13 private:
14  MainWindow* window;
15 
16 public:
17  App() = default;
18 
19 
20 private:
21  virtual bool OnInit() override;
22 
23  virtual int OnExit() override;
24 
25 
26  void processEvents(MainLoopEvent& evt) {
27  evt.execute();
28  }
29 };
30 
NAMESPACE_SPH_BEGIN
Definition: BarnesHut.cpp:13
Posting events to be executed on main thread.
#define NAMESPACE_SPH_END
Definition: Object.h:12
App()=default
Custom event holding a callback.
Definition: MainLoop.h:26
void execute()
Definition: MainLoop.h:43