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

@@ -10,29 +10,33 @@
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Math/Vector2.hpp>
#include <Nazara/Utility/Config.hpp>
#include <Nazara/Utility/Image.hpp>
namespace Nz
{
class CursorImpl;
class Image;
class NAZARA_UTILITY_API Cursor
{
friend class WindowImpl;
public:
Cursor();
~Cursor();
inline Cursor();
inline ~Cursor();
bool Create(const Image& cursor, int hotSpotX = 0, int hotSpotY = 0);
bool Create(const Image& cursor, const Vector2i& hotSpot);
void Destroy();
bool IsValid() const;
inline const Image& GetImage() const;
inline bool IsValid() const;
private:
Image m_cursorImage;
CursorImpl* m_impl;
};
}
#include <Nazara/Utility/Cursor.inl>
#endif // NAZARA_CURSOR_HPP