ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Manager for the current game Cursor. More...

#include <cursor.h>

Collaboration diagram for Stark::Cursor:

List of all members.

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)
 ~Cursor ()
void render ()
 Render the Cursor.
void setMousePosition (const Common::Point &pos)
 Update the mouse position.
void setFading (bool fading)
 Make cycle the cursor's brightness.
void onScreenChanged ()
 Update when the screen resolution has changed.
Common::Point getMousePosition (bool unscaled=false) const
Common::Rect getHotRectangle () const
 Rectangle at the mouse position to consider to hit test small world items.
void setCursorType (CursorType type)
void setCursorImage (VisualImageXMG *image)
void setMouseHint (const Common::String &hint)

Private Member Functions

void updateFadeLevel ()
void updateHintDelay ()

Private Attributes

Gfx::Driver_gfx
Common::String _currentHint
int32 _hintDisplayDelay
Common::Point _mousePos
VisualImageXMG_cursorImage
VisualText_mouseText
CursorType _currentCursorType
bool _fading
float _fadeLevel
bool _fadeLevelIncreasing

Static Private Attributes

static const float _fadeValueMax = 0.3f

Detailed Description

Manager for the current game Cursor.

Definition at line 41 of file cursor.h.


Member Enumeration Documentation

Enumerator:
kImage 
kDefault 
kActive 
kPassive 
kEye 
kHand 
kMouth 

Definition at line 63 of file cursor.h.


Constructor & Destructor Documentation

Stark::Cursor::Cursor ( Gfx::Driver gfx  )  [explicit]

Definition at line 42 of file cursor.cpp.

Stark::Cursor::~Cursor (  ) 

Definition at line 54 of file cursor.cpp.


Member Function Documentation

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

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

Definition at line 176 of file cursor.cpp.

Common::Point Stark::Cursor::getMousePosition ( bool  unscaled = false  )  const

Definition at line 149 of file cursor.cpp.

void Stark::Cursor::onScreenChanged (  ) 

Update when the screen resolution has changed.

Definition at line 81 of file cursor.cpp.

void Stark::Cursor::render (  ) 

Render the Cursor.

Definition at line 113 of file cursor.cpp.

void Stark::Cursor::setCursorImage ( VisualImageXMG image  ) 

Definition at line 67 of file cursor.cpp.

void Stark::Cursor::setCursorType ( CursorType  type  ) 

Definition at line 58 of file cursor.cpp.

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

Make cycle the cursor's brightness.

Definition at line 77 of file cursor.cpp.

void Stark::Cursor::setMouseHint ( const Common::String hint  ) 

Definition at line 158 of file cursor.cpp.

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

Update the mouse position.

Definition at line 72 of file cursor.cpp.

void Stark::Cursor::updateFadeLevel (  )  [private]

Definition at line 87 of file cursor.cpp.

void Stark::Cursor::updateHintDelay (  )  [private]

Definition at line 103 of file cursor.cpp.


Member Data Documentation

Definition at line 88 of file cursor.h.

Definition at line 82 of file cursor.h.

Definition at line 86 of file cursor.h.

float Stark::Cursor::_fadeLevel [private]

Definition at line 91 of file cursor.h.

Definition at line 92 of file cursor.h.

const float Stark::Cursor::_fadeValueMax = 0.3f [static, private]

Definition at line 93 of file cursor.h.

bool Stark::Cursor::_fading [private]

Definition at line 90 of file cursor.h.

Definition at line 80 of file cursor.h.

Definition at line 83 of file cursor.h.

Definition at line 85 of file cursor.h.

Definition at line 87 of file cursor.h.


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


Generated on Sat Sep 21 2019 05:04:26 for ResidualVM by doxygen 1.7.1
curved edge   curved edge