#include <cursor.h>
Public Types | |
enum | CursorType { kImage = -1, kDefault = 0, kActive = 3, kPassive = 9, kEye = 10, kHand = 11, kMouth = 12 } |
Public Member Functions | |
Cursor (Gfx::Driver *gfx) | |
void | render () |
void | setMousePosition (const Common::Point &pos) |
void | setItemActive (bool fading) |
void | onScreenChanged () |
Common::Point | getMousePosition (bool unscaled=false) const |
Common::Rect | getHotRectangle () const |
void | setCursorType (CursorType type) |
void | setCursorImage (VisualImageXMG *image) |
void | setMouseHint (const Common::String &hint) |
Manager for the current game Cursor
void Stark::Cursor::render | ( | ) |
Render the Cursor
void Stark::Cursor::setMousePosition | ( | const Common::Point & | pos | ) |
Update the mouse position
void Stark::Cursor::setItemActive | ( | bool | fading | ) |
Make cycle the cursor's brightness and play sound
void Stark::Cursor::onScreenChanged | ( | ) |
Update when the screen resolution has changed
Common::Rect Stark::Cursor::getHotRectangle | ( | ) | const |
Rectangle at the mouse position to consider to hit test small world items