2009-04-15 17:03:31 +03:00
|
|
|
/*
|
2023-02-01 16:42:03 +02:00
|
|
|
* ICursor.h, part of VCMI engine
|
2009-04-15 17:03:31 +03:00
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
2009-04-16 14:14:13 +03:00
|
|
|
*/
|
2017-07-13 10:26:03 +02:00
|
|
|
#pragma once
|
2023-01-05 19:03:27 +02:00
|
|
|
|
2023-02-01 20:42:06 +02:00
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
class Point;
|
|
|
|
VCMI_LIB_NAMESPACE_END
|
2023-01-05 19:03:27 +02:00
|
|
|
|
2023-02-01 20:42:06 +02:00
|
|
|
class IImage;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2023-01-05 22:38:52 +02:00
|
|
|
class ICursor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~ICursor() = default;
|
|
|
|
|
|
|
|
virtual void setImage(std::shared_ptr<IImage> image, const Point & pivotOffset) = 0;
|
|
|
|
virtual void setCursorPosition( const Point & newPos ) = 0;
|
|
|
|
virtual void render() = 0;
|
2023-01-19 18:16:11 +02:00
|
|
|
virtual void setVisible( bool on) = 0;
|
2023-01-05 22:38:52 +02:00
|
|
|
};
|
|
|
|
|