Added Window::Close (soft way to close window)

Former-commit-id: 9d47ed3ed38d62928f3cb6356fed07501b5e92d5
This commit is contained in:
Lynix
2013-03-08 01:20:26 +01:00
parent 9f780ef2bd
commit 39e54474dd
3 changed files with 274 additions and 65 deletions

View File

@@ -42,6 +42,8 @@ class NAZARA_API NzWindow : NzNonCopyable
NzWindow(NzWindowHandle handle);
virtual ~NzWindow();
void Close();
bool Create(NzVideoMode mode, const NzString& title, nzUInt32 style = nzWindowStyle_Default);
bool Create(NzWindowHandle handle);
@@ -60,6 +62,7 @@ class NAZARA_API NzWindow : NzNonCopyable
bool HasFocus() const;
bool IsMinimized() const;
bool IsOpen(bool checkClosed = true);
bool IsOpen() const;
bool IsValid() const;
bool IsVisible() const;
@@ -106,6 +109,7 @@ class NAZARA_API NzWindow : NzNonCopyable
bool m_eventListener;
bool m_waitForEvent;
#endif
bool m_closed;
bool m_ownsWindow;
};