From c4a5d32f28a7d130c169b6d6ba77af25bb94a5a7 Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 28 Dec 2012 19:26:00 +0100 Subject: [PATCH] Fixed method alphabetic order Former-commit-id: b37a42cb64fa729888ad50957fc8c73b17ef9620 --- src/Nazara/Utility/Win32/WindowImpl.cpp | 32 ++++++++++++------------- src/Nazara/Utility/Win32/WindowImpl.hpp | 4 ++-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Nazara/Utility/Win32/WindowImpl.cpp b/src/Nazara/Utility/Win32/WindowImpl.cpp index 70ae1e388..0f281a827 100644 --- a/src/Nazara/Utility/Win32/WindowImpl.cpp +++ b/src/Nazara/Utility/Win32/WindowImpl.cpp @@ -257,22 +257,6 @@ bool NzWindowImpl::HasFocus() const return GetForegroundWindow() == m_handle; } -void NzWindowImpl::ProcessEvents(bool block) -{ - if (m_ownsWindow) - { - if (block) - WaitMessage(); - - MSG message; - while (PeekMessageW(&message, nullptr, 0, 0, PM_REMOVE)) - { - TranslateMessage(&message); - DispatchMessageW(&message); - } - } -} - void NzWindowImpl::IgnoreNextMouseEvent(int mouseX, int mouseY) { // Petite astuce ... @@ -290,6 +274,22 @@ bool NzWindowImpl::IsVisible() const return IsWindowVisible(m_handle); } +void NzWindowImpl::ProcessEvents(bool block) +{ + if (m_ownsWindow) + { + if (block) + WaitMessage(); + + MSG message; + while (PeekMessageW(&message, nullptr, 0, 0, PM_REMOVE)) + { + TranslateMessage(&message); + DispatchMessageW(&message); + } + } +} + void NzWindowImpl::SetCursor(nzWindowCursor cursor) { switch (cursor) diff --git a/src/Nazara/Utility/Win32/WindowImpl.hpp b/src/Nazara/Utility/Win32/WindowImpl.hpp index 5dc4cd458..bc473c691 100644 --- a/src/Nazara/Utility/Win32/WindowImpl.hpp +++ b/src/Nazara/Utility/Win32/WindowImpl.hpp @@ -51,13 +51,13 @@ class NzWindowImpl : NzNonCopyable bool HasFocus() const; - void ProcessEvents(bool block); - void IgnoreNextMouseEvent(int mouseX, int mouseY); bool IsMinimized() const; bool IsVisible() const; + void ProcessEvents(bool block); + void SetCursor(nzWindowCursor cursor); void SetCursor(const NzCursor& cursor); void SetEventListener(bool listener);