ScummVM API documentation
Graphics::MacCursor Class Reference

#include <maccursor.h>

Inheritance diagram for Graphics::MacCursor:
Graphics::Cursor Director::Cursor

Public Member Functions

uint16 getWidth () const
 
uint16 getHeight () const
 
uint16 getHotspotX () const
 
uint16 getHotspotY () const
 
virtual byte getKeyColor () const
 
const byte * getSurface () const
 
virtual const byte * getPalette () const
 
byte getPaletteStartIndex () const
 
uint16 getPaletteCount () const
 
bool readFromStream (Common::SeekableReadStream &stream, bool forceMonochrome=false, byte monochromeInvertedPixelColor=0xff, bool forceCURSFormat=false)
 
- Public Member Functions inherited from Graphics::Cursor
virtual const byte * getMask () const
 

Protected Member Functions

bool readFromCURS (Common::SeekableReadStream &stream, byte monochromeInvertedPixelColor)
 
bool readFromCRSR (Common::SeekableReadStream &stream, bool forceMonochrome, byte monochromeInvertedPixelColor)
 
void clear ()
 

Protected Attributes

byte * _surface
 
byte _palette [256 *3]
 
uint16 _hotspotX
 The cursor's hotspot's x coordinate.
 
uint16 _hotspotY
 The cursor's hotspot's y coordinate.
 

Detailed Description

A Mac crsr or CURS cursor

Member Function Documentation

◆ getWidth()

uint16 Graphics::MacCursor::getWidth ( void  ) const
inlinevirtual

Return the cursor's width.

Implements Graphics::Cursor.

◆ getHeight()

uint16 Graphics::MacCursor::getHeight ( void  ) const
inlinevirtual

Return the cursor's height.

Implements Graphics::Cursor.

◆ getHotspotX()

uint16 Graphics::MacCursor::getHotspotX ( ) const
inlinevirtual

Return the cursor's hotspot's x coordinate.

Implements Graphics::Cursor.

◆ getHotspotY()

uint16 Graphics::MacCursor::getHotspotY ( ) const
inlinevirtual

Return the cursor's hotspot's y coordinate.

Implements Graphics::Cursor.

◆ getKeyColor()

virtual byte Graphics::MacCursor::getKeyColor ( ) const
inlinevirtual

Return the cursor's transparent key.

Implements Graphics::Cursor.

Reimplemented in Director::Cursor.

◆ getSurface()

const byte* Graphics::MacCursor::getSurface ( ) const
inlinevirtual

Return the cursor's surface.

Implements Graphics::Cursor.

◆ getPalette()

virtual const byte* Graphics::MacCursor::getPalette ( ) const
inlinevirtual

Return the cursor's palette in RGB format.

Implements Graphics::Cursor.

Reimplemented in Director::Cursor.

◆ getPaletteStartIndex()

byte Graphics::MacCursor::getPaletteStartIndex ( ) const
inlinevirtual

Return the starting index of the palette.

Implements Graphics::Cursor.

◆ getPaletteCount()

uint16 Graphics::MacCursor::getPaletteCount ( ) const
inlinevirtual

Return the number of colors in the palette.

Implements Graphics::Cursor.

◆ readFromStream()

bool Graphics::MacCursor::readFromStream ( Common::SeekableReadStream stream,
bool  forceMonochrome = false,
byte  monochromeInvertedPixelColor = 0xff,
bool  forceCURSFormat = false 
)

Read the cursor's data out of a stream.

◆ clear()

void Graphics::MacCursor::clear ( )
protected

Clear the cursor.


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