Sdk/Application: Add MakeExitOnLastWindowClosed

At least it's explicit


Former-commit-id: e5bf5064222934b4f9dade56aab74b8f29367ed8 [formerly 5d7aa20615adf39407b95096a2da8c4888111fef]
Former-commit-id: b404314721413e7d9b6d0307f7316f22ac5f81fb
This commit is contained in:
Lynix 2016-06-09 08:48:35 +02:00
parent 26475973e2
commit 2007edd398
2 changed files with 11 additions and 0 deletions

View File

@ -33,6 +33,10 @@ namespace Ndk
bool Run();
#ifndef NDK_SERVER
inline void MakeExitOnLastWindowClosed(bool exitOnClosedWindows);
#endif
inline void Quit();
Application& operator=(const Application&) = delete;

View File

@ -61,6 +61,13 @@ namespace Ndk
return m_updateTime;
}
#ifndef NDK_SERVER
inline void Application::MakeExitOnLastWindowClosed(bool exitOnClosedWindows)
{
m_exitOnClosedWindows = exitOnClosedWindows;
}
#endif
inline void Application::Quit()
{
m_shouldQuit = true;