Sdk/Application: Add MakeExitOnLastWindowClosed
At least it's explicit Former-commit-id: 1db6523fe5ad0085056b1192cbf8ff8b714dd795 [formerly 1e02bb893158e39d69201c6044501149722bc308] Former-commit-id: eee14cb25425b7a368d084fcb552996784e4a70e
This commit is contained in:
@@ -33,6 +33,10 @@ namespace Ndk
|
|||||||
|
|
||||||
bool Run();
|
bool Run();
|
||||||
|
|
||||||
|
#ifndef NDK_SERVER
|
||||||
|
inline void MakeExitOnLastWindowClosed(bool exitOnClosedWindows);
|
||||||
|
#endif
|
||||||
|
|
||||||
inline void Quit();
|
inline void Quit();
|
||||||
|
|
||||||
Application& operator=(const Application&) = delete;
|
Application& operator=(const Application&) = delete;
|
||||||
|
|||||||
@@ -61,6 +61,13 @@ namespace Ndk
|
|||||||
return m_updateTime;
|
return m_updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDK_SERVER
|
||||||
|
inline void Application::MakeExitOnLastWindowClosed(bool exitOnClosedWindows)
|
||||||
|
{
|
||||||
|
m_exitOnClosedWindows = exitOnClosedWindows;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
inline void Application::Quit()
|
inline void Application::Quit()
|
||||||
{
|
{
|
||||||
m_shouldQuit = true;
|
m_shouldQuit = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user