Switch from Nz prefix to namespace Nz

What a huge commit


Former-commit-id: 38ac5eebf70adc1180f571f6006192d28fb99897
This commit is contained in:
Lynix
2015-09-25 19:20:05 +02:00
parent c214251ecf
commit df8da275c4
609 changed files with 68265 additions and 66534 deletions

View File

@@ -15,43 +15,46 @@
#include <Nazara/Utility/Debug.hpp>
NzVector2i NzMouse::GetPosition()
namespace Nz
{
return NzEventImpl::GetMousePosition();
}
NzVector2i NzMouse::GetPosition(const NzWindow& relativeTo)
{
return NzEventImpl::GetMousePosition(relativeTo);
}
bool NzMouse::IsButtonPressed(Button button)
{
return NzEventImpl::IsMouseButtonPressed(button);
}
void NzMouse::SetPosition(const NzVector2i& position)
{
NzEventImpl::SetMousePosition(position.x, position.y);
}
void NzMouse::SetPosition(const NzVector2i& position, const NzWindow& relativeTo, bool ignoreEvent)
{
if (ignoreEvent && position.x > 0 && position.y > 0)
relativeTo.IgnoreNextMouseEvent(position.x, position.y);
NzEventImpl::SetMousePosition(position.x, position.y, relativeTo);
}
void NzMouse::SetPosition(int x, int y)
{
NzEventImpl::SetMousePosition(x, y);
}
void NzMouse::SetPosition(int x, int y, const NzWindow& relativeTo, bool ignoreEvent)
{
if (ignoreEvent && x > 0 && y > 0)
relativeTo.IgnoreNextMouseEvent(x, y);
NzEventImpl::SetMousePosition(x, y, relativeTo);
Vector2i Mouse::GetPosition()
{
return EventImpl::GetMousePosition();
}
Vector2i Mouse::GetPosition(const Window& relativeTo)
{
return EventImpl::GetMousePosition(relativeTo);
}
bool Mouse::IsButtonPressed(Button button)
{
return EventImpl::IsMouseButtonPressed(button);
}
void Mouse::SetPosition(const Vector2i& position)
{
EventImpl::SetMousePosition(position.x, position.y);
}
void Mouse::SetPosition(const Vector2i& position, const Window& relativeTo, bool ignoreEvent)
{
if (ignoreEvent && position.x > 0 && position.y > 0)
relativeTo.IgnoreNextMouseEvent(position.x, position.y);
EventImpl::SetMousePosition(position.x, position.y, relativeTo);
}
void Mouse::SetPosition(int x, int y)
{
EventImpl::SetMousePosition(x, y);
}
void Mouse::SetPosition(int x, int y, const Window& relativeTo, bool ignoreEvent)
{
if (ignoreEvent && x > 0 && y > 0)
relativeTo.IgnoreNextMouseEvent(x, y);
EventImpl::SetMousePosition(x, y, relativeTo);
}
}