Fixed method alphabetic order
Former-commit-id: b37a42cb64fa729888ad50957fc8c73b17ef9620
This commit is contained in:
parent
7d02e5a330
commit
c4a5d32f28
|
|
@ -257,22 +257,6 @@ bool NzWindowImpl::HasFocus() const
|
||||||
return GetForegroundWindow() == m_handle;
|
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)
|
void NzWindowImpl::IgnoreNextMouseEvent(int mouseX, int mouseY)
|
||||||
{
|
{
|
||||||
// Petite astuce ...
|
// Petite astuce ...
|
||||||
|
|
@ -290,6 +274,22 @@ bool NzWindowImpl::IsVisible() const
|
||||||
return IsWindowVisible(m_handle);
|
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)
|
void NzWindowImpl::SetCursor(nzWindowCursor cursor)
|
||||||
{
|
{
|
||||||
switch (cursor)
|
switch (cursor)
|
||||||
|
|
|
||||||
|
|
@ -51,13 +51,13 @@ class NzWindowImpl : NzNonCopyable
|
||||||
|
|
||||||
bool HasFocus() const;
|
bool HasFocus() const;
|
||||||
|
|
||||||
void ProcessEvents(bool block);
|
|
||||||
|
|
||||||
void IgnoreNextMouseEvent(int mouseX, int mouseY);
|
void IgnoreNextMouseEvent(int mouseX, int mouseY);
|
||||||
|
|
||||||
bool IsMinimized() const;
|
bool IsMinimized() const;
|
||||||
bool IsVisible() const;
|
bool IsVisible() const;
|
||||||
|
|
||||||
|
void ProcessEvents(bool block);
|
||||||
|
|
||||||
void SetCursor(nzWindowCursor cursor);
|
void SetCursor(nzWindowCursor cursor);
|
||||||
void SetCursor(const NzCursor& cursor);
|
void SetCursor(const NzCursor& cursor);
|
||||||
void SetEventListener(bool listener);
|
void SetEventListener(bool listener);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue