Added Window::OnWindowResized event

Former-commit-id: 61262182892d2dae3defb239e751cd4b996a5ad6
This commit is contained in:
Lynix
2013-08-21 18:48:15 +02:00
parent 2bc30f4638
commit a6f26ff336
2 changed files with 7 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ class NAZARA_API NzWindow : NzNonCopyable
protected: protected:
virtual bool OnWindowCreated(); virtual bool OnWindowCreated();
virtual void OnWindowDestroy(); virtual void OnWindowDestroy();
virtual void OnWindowResized();
NzWindowImpl* m_impl; NzWindowImpl* m_impl;

View File

@@ -704,6 +704,10 @@ void NzWindow::OnWindowDestroy()
{ {
} }
void NzWindow::OnWindowResized()
{
}
void NzWindow::IgnoreNextMouseEvent(int mouseX, int mouseY) const void NzWindow::IgnoreNextMouseEvent(int mouseX, int mouseY) const
{ {
#if NAZARA_UTILITY_SAFE #if NAZARA_UTILITY_SAFE
@@ -724,6 +728,8 @@ void NzWindow::PushEvent(const NzEvent& event)
#endif #endif
m_events.push(event); m_events.push(event);
if (event.type == nzEventType_Resized)
OnWindowResized();
#if NAZARA_UTILITY_THREADED_WINDOW #if NAZARA_UTILITY_THREADED_WINDOW
m_eventMutex.Unlock(); m_eventMutex.Unlock();