ScummVM API documentation
Sci::GfxCursor Class Reference

Public Member Functions

 GfxCursor (ResourceManager *resMan, GfxPalette *palette, GfxScreen *screen, GfxCoordAdjuster16 *coordAdjuster, EventManager *eventMan)
 
void kernelShow ()
 
void kernelHide ()
 
bool isVisible ()
 
void kernelSetShape (GuiResourceId resourceId)
 
void kernelSetView (GuiResourceId viewNum, int loopNum, int celNum, Common::Point *hotspot)
 
void kernelSetMacCursor (GuiResourceId viewNum, int loopNum, int celNum)
 
void setPosition (Common::Point pos)
 
Common::Point getPosition ()
 
void refreshPosition ()
 
void kernelResetMoveZone ()
 
void kernelSetMoveZone (Common::Rect zone)
 
void kernelSetZoomZone (byte multiplier, Common::Rect zone, GuiResourceId viewNum, int loopNum, int celNum, GuiResourceId picNum, byte zoomColor)
 
void kernelClearZoomZone ()
 
void kernelSetPos (Common::Point pos)
 
void kernelMoveCursor (Common::Point pos)
 

Member Function Documentation

◆ kernelResetMoveZone()

void Sci::GfxCursor::kernelResetMoveZone ( )

Removes limit for mouse movement

◆ kernelSetMoveZone()

void Sci::GfxCursor::kernelSetMoveZone ( Common::Rect  zone)

Limits the mouse movement to a given rectangle.

Parameters
[in]rectThe rectangle

◆ kernelSetZoomZone()

void Sci::GfxCursor::kernelSetZoomZone ( byte  multiplier,
Common::Rect  zone,
GuiResourceId  viewNum,
int  loopNum,
int  celNum,
GuiResourceId  picNum,
byte  zoomColor 
)

Creates a dynamic zoom cursor, that is used to zoom on specific parts of the screen, using a separate larger picture. This was only used by two SCI1.1 games, Laura Bow 2 (for examining the glyphs), and Freddy Pharkas (for examining the prescription with the whisky glass).

In the Mac version of Freddy Pharkas, this was removed completely, and the scene has been redesigned to work without this functionality. There was no version of LB2 for the Macintosh platform.


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