Renderer: Replaced RenderTarget::Get[Height|Width] by RenderTarget::GetSize
Utility: Removed Window::Get[Height|Width] methods
This commit is contained in:
@@ -218,11 +218,6 @@ namespace Nz
|
||||
return m_handle;
|
||||
}
|
||||
|
||||
unsigned int WindowImpl::GetHeight() const
|
||||
{
|
||||
return m_size.y;
|
||||
}
|
||||
|
||||
Vector2i WindowImpl::GetPosition() const
|
||||
{
|
||||
return m_position;
|
||||
@@ -252,11 +247,6 @@ namespace Nz
|
||||
return String::Unicode(wTitle.get());
|
||||
}
|
||||
|
||||
unsigned int WindowImpl::GetWidth() const
|
||||
{
|
||||
return m_size.x;
|
||||
}
|
||||
|
||||
bool WindowImpl::HasFocus() const
|
||||
{
|
||||
return GetForegroundWindow() == m_handle;
|
||||
|
||||
@@ -46,12 +46,10 @@ namespace Nz
|
||||
void EnableSmoothScrolling(bool enable);
|
||||
|
||||
WindowHandle GetHandle() const;
|
||||
unsigned int GetHeight() const;
|
||||
Vector2i GetPosition() const;
|
||||
Vector2ui GetSize() const;
|
||||
WindowStyleFlags GetStyle() const;
|
||||
String GetTitle() const;
|
||||
unsigned int GetWidth() const;
|
||||
|
||||
bool HasFocus() const;
|
||||
|
||||
|
||||
@@ -203,19 +203,6 @@ namespace Nz
|
||||
return m_impl->GetHandle();
|
||||
}
|
||||
|
||||
unsigned int Window::GetHeight() const
|
||||
{
|
||||
#if NAZARA_PLATFORM_SAFE
|
||||
if (!m_impl)
|
||||
{
|
||||
NazaraError("Window not created");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
return m_impl->GetHeight();
|
||||
}
|
||||
|
||||
Vector2i Window::GetPosition() const
|
||||
{
|
||||
#if NAZARA_PLATFORM_SAFE
|
||||
@@ -268,19 +255,6 @@ namespace Nz
|
||||
return m_impl->GetTitle();
|
||||
}
|
||||
|
||||
unsigned int Window::GetWidth() const
|
||||
{
|
||||
#if NAZARA_PLATFORM_SAFE
|
||||
if (!m_impl)
|
||||
{
|
||||
NazaraError("Window not created");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
return m_impl->GetWidth();
|
||||
}
|
||||
|
||||
bool Window::HasFocus() const
|
||||
{
|
||||
#if NAZARA_PLATFORM_SAFE
|
||||
|
||||
Reference in New Issue
Block a user