Files
eepp/include/eepp/window/ccursor.hpp
2012-12-07 01:30:31 -03:00

50 lines
1.2 KiB
C++

#ifndef EE_WINDOWCCURSOR_HPP
#define EE_WINDOWCCURSOR_HPP
#include <eepp/window/base.hpp>
#include <eepp/graphics/cimage.hpp>
#include <eepp/graphics/ctexture.hpp>
using namespace EE::Graphics;
#include <eepp/window/cwindow.hpp>
namespace EE { namespace Window {
class EE_API cCursor {
public:
/** @return The cursor id */
const Uint32& Id() const;
/** @return The cursor name */
const std::string& Name() const;
/** @return The cursor hotspot, this means, the position inside the cursor image, where the click is taken */
const eeVector2i& HotSpot() const;
/** @return The pointer to the image that represents the cursor */
cImage * Image() const;
virtual ~cCursor();
protected:
friend class cCursorManager;
Uint32 mId;
std::string mName;
cImage * mImage;
eeVector2i mHotSpot;
cWindow * mWindow;
cCursor( cTexture * tex, const eeVector2i& hotspot, const std::string& name, Window::cWindow * window );
cCursor( cImage * img, const eeVector2i& hotspot, const std::string& name, Window::cWindow * window );
cCursor( const std::string& path, const eeVector2i& hotspot, const std::string& name, Window::cWindow * window );
virtual void Create() = 0;
};
}}
#endif