Utility/Cursor: Add GetImage() method

This commit is contained in:
Lynix
2017-01-15 22:41:48 +01:00
parent c9458eeb17
commit 954298dc1e
3 changed files with 41 additions and 19 deletions

View File

@@ -16,16 +16,6 @@
namespace Nz
{
Cursor::Cursor() :
m_impl(nullptr)
{
}
Cursor::~Cursor()
{
Destroy();
}
bool Cursor::Create(const Image& cursor, int hotSpotX, int hotSpotY)
{
Destroy();
@@ -40,6 +30,8 @@ namespace Nz
return false;
}
m_cursorImage = cursor;
return true;
}
@@ -58,9 +50,4 @@ namespace Nz
m_impl = nullptr;
}
}
bool Cursor::IsValid() const
{
return m_impl != nullptr;
}
}