SPH
src
gui
launcherGui
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
8
NAMESPACE_SPH_BEGIN
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
31
NAMESPACE_SPH_END
NAMESPACE_SPH_BEGIN
NAMESPACE_SPH_BEGIN
Definition:
BarnesHut.cpp:13
Controller.h
MainLoop.h
Posting events to be executed on main thread.
NAMESPACE_SPH_END
#define NAMESPACE_SPH_END
Definition:
Object.h:12
App
Definition:
LauncherGui.h:12
App::App
App()=default
MainLoopEvent
Custom event holding a callback.
Definition:
MainLoop.h:26
MainLoopEvent::execute
void execute()
Definition:
MainLoop.h:43
MainWindow
Definition:
MainWindow.h:23
Generated by
1.9.1