ScummVM API documentation
Cursor Class Reference
Inheritance diagram for Cursor:
DefaultDisplayClient DisplayClient

Public Member Functions

 Cursor (AtariGraphicsManager *manager, Screen *screen)
 
void reset ()
 
void update ()
 
bool setVisible (bool visible)
 
Common::Point getPosition () const
 
void setPosition (int x, int y)
 
void updatePosition (int deltaX, int deltaY)
 
void setSurface (const void *buf, int w, int h, int hotspotX, int hotspotY, uint32 keycolor)
 
void setPalette (const byte *colors, uint start, uint num)
 
void convertTo (const Graphics::PixelFormat &format)
 
bool isVisible () const
 
bool isChanged () const
 
bool intersects (const Common::Rect &rect) const
 
void flushBackground (const Graphics::Surface &srcSurface, const Common::Rect &rect)
 
bool restoreBackground (const Graphics::Surface &srcSurface, bool force)
 
bool draw (bool directRendering, bool force)
 
void setKeyColor (uint32 color)
 
void setCursorTargetScale (int scale)
 
void setScreenPalette (const byte *colors, uint start, uint num)
 
void copyFromArray (const byte *array)
 
Palettepalette ()
 
Bufferbuffer ()
 
void setCursorPalette (const byte *colors, uint start, uint num)
 
void enableCursorPalette (bool enable)
 
bool isCursorPaletteEnabled () const
 
void setLimits (uint32 width, uint32 height)
 
void setXY (int x, int y)
 
int32 getX () const
 
int32 getY () const
 
bool increaseXY (int32 incX, int32 incY)
 
void adjustXYForScreenSize (int32 &x, int32 &y)
 
void init ()
 
void setHotspot (int32 x, int32 y)
 
void setScreenPaletteScummvmPixelFormat (const Graphics::PixelFormat *format)
 
void setSizeAndScummvmPixelFormat (uint32 widht, uint32 height, const Graphics::PixelFormat *format)
 
void clearKeyColor ()
 
void useGlobalScaler (bool val)
 
bool allocate ()
 
void deallocate ()
 
- Public Member Functions inherited from DefaultDisplayClient
bool isVisible () const
 
void setVisible (bool v)
 
Bufferbuffer ()
 
Palettepalette ()
 
void init ()
 
bool allocate (bool bufferInVram=false, bool paletteInVram=false)
 
void deallocate ()
 
void clearBuffer ()
 
void clearPalette ()
 
void render ()
 
uint32 getWidth () const
 
uint32 getHeight () const
 
void setPartialPalette (const byte *colors, uint start, uint num)
 
void getPartialPalette (byte *colors, uint start, uint num) const
 
void copyFromRect (const byte *buf, int pitch, int destX, int destY, int recWidth, int recHeight)
 
void copyToArray (byte *dst, int pitch)
 
void setDirty ()
 
void setClean ()
 
bool isDirty () const
 
- Public Member Functions inherited from DisplayClient
bool isVisible ()
 
bool isDirty ()
 
void setClean ()
 
void render ()
 

Additional Inherited Members

- Protected Attributes inherited from DefaultDisplayClient
Buffer _buffer
 
Palette _palette
 
GuRenderer _renderer
 
bool _visible
 
bool _dirty
 

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