class EE::Window::Cursor

Overview

#include <cursor.hpp>

class Cursor {
public:
    // enums

    enum SysType;
    enum Type;

    // construction

    virtual ~Cursor();

    // methods

    static Cursor::Type fromName(std::string name);
    const String::HashType& getId() const;
    const std::string& getName() const;
    const Vector2i& getHotSpot() const;
    Graphics::Image* getImage() const;
};

Detailed Documentation

Methods

const String::HashType& getId() const

Returns:

The cursor id

const std::string& getName() const

Returns:

The cursor name

const Vector2i& getHotSpot() const

Returns:

The cursor hotspot, this means, the position inside the cursor image, where the click is taken

Graphics::Image* getImage() const

Returns:

The pointer to the image that represents the cursor