Utility/Cursor: Add GetImage() method
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user