Sdk/Application: Add MakeExitOnLastWindowClosed

At least it's explicit


Former-commit-id: 9118daeb3b33768697d502113e80b97c883ff9f5 [formerly aebc375bf0865d94103a16e7cb9540f7c54cfc88]
Former-commit-id: 8a8ef252c1ddbc0838b6d5cbf1d48917bf0d5b50
This commit is contained in:
Lynix 2016-06-09 08:48:35 +02:00
parent 296be70a5c
commit 18eab1045d
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;