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

Private Attributes

Gfx::Driver_gfx
Common::String _currentHint
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 engines/stark/ui/cursor.h.


Member Enumeration Documentation

Enumerator:
kImage 
kDefault 
kActive 
kPassive 
kEye 
kHand 
kMouth 

Definition at line 63 of file engines/stark/ui/cursor.h.


Constructor & Destructor Documentation

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

Definition at line 42 of file stark/ui/cursor.cpp.

Stark::Cursor::~Cursor (  ) 

Definition at line 53 of file stark/ui/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 162 of file stark/ui/cursor.cpp.

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

Definition at line 136 of file stark/ui/cursor.cpp.

void Stark::Cursor::onScreenChanged (  ) 

Update when the screen resolution has changed.

Definition at line 79 of file stark/ui/cursor.cpp.

void Stark::Cursor::render (  ) 

Render the Cursor.

Definition at line 101 of file stark/ui/cursor.cpp.

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

Definition at line 66 of file stark/ui/cursor.cpp.

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

Definition at line 57 of file stark/ui/cursor.cpp.

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

Make cycle the cursor's brightness.

Definition at line 75 of file stark/ui/cursor.cpp.

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

Definition at line 145 of file stark/ui/cursor.cpp.

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

Update the mouse position.

Definition at line 71 of file stark/ui/cursor.cpp.

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

Definition at line 85 of file stark/ui/cursor.cpp.


Member Data Documentation

float Stark::Cursor::_fadeLevel [private]

Definition at line 88 of file engines/stark/ui/cursor.h.

Definition at line 89 of file engines/stark/ui/cursor.h.

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

Definition at line 90 of file engines/stark/ui/cursor.h.

bool Stark::Cursor::_fading [private]

Definition at line 87 of file engines/stark/ui/cursor.h.

Definition at line 79 of file engines/stark/ui/cursor.h.

Definition at line 82 of file engines/stark/ui/cursor.h.

Definition at line 84 of file engines/stark/ui/cursor.h.


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


Generated on Sat Jan 12 2019 05:05:09 for ResidualVM by doxygen 1.7.1
curved edge   curved edge