ICursor.h 671 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * CCursorHandler.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. class CAnimation;
  12. class IImage;
  13. struct SDL_Surface;
  14. struct SDL_Texture;
  15. struct SDL_Cursor;
  16. #include "../../lib/Point.h"
  17. class ICursor
  18. {
  19. public:
  20. virtual ~ICursor() = default;
  21. virtual void setImage(std::shared_ptr<IImage> image, const Point & pivotOffset) = 0;
  22. virtual void setCursorPosition( const Point & newPos ) = 0;
  23. virtual void render() = 0;
  24. virtual void setVisible( bool on) = 0;
  25. };