ScummVM API documentation
Stark::Cursor Class Reference

#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)
 

Detailed Description

Manager for the current game Cursor

Member Function Documentation

◆ render()

void Stark::Cursor::render ( )

Render the Cursor

◆ setMousePosition()

void Stark::Cursor::setMousePosition ( const Common::Point pos)

Update the mouse position

◆ setItemActive()

void Stark::Cursor::setItemActive ( bool  fading)

Make cycle the cursor's brightness and play sound

◆ onScreenChanged()

void Stark::Cursor::onScreenChanged ( )

Update when the screen resolution has changed

◆ getHotRectangle()

Common::Rect Stark::Cursor::getHotRectangle ( ) const

Rectangle at the mouse position to consider to hit test small world items


The documentation for this class was generated from the following file: