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

A Mac crsr or CURS cursor. More...

#include <maccursor.h>

Inheritance diagram for Graphics::MacCursor:
Collaboration diagram for Graphics::MacCursor:

List of all members.

Public Member Functions

 MacCursor ()
 ~MacCursor ()
uint16 getWidth () const
 Return the cursor's width.
uint16 getHeight () const
 Return the cursor's height.
uint16 getHotspotX () const
 Return the cursor's hotspot's x coordinate.
uint16 getHotspotY () const
 Return the cursor's hotspot's y coordinate.
virtual byte getKeyColor () const
 Return the cursor's transparent key.
const bytegetSurface () const
 Return the cursor's surface.
virtual const bytegetPalette () const
 Return the cursor's palette in RGB format.
byte getPaletteStartIndex () const
 Return the starting index of the palette.
uint16 getPaletteCount () const
 Return the number of colors in the palette.
bool readFromStream (Common::SeekableReadStream &stream, bool forceMonochrome=false, byte monochromeInvertedPixelColor=0xff)
 Read the cursor's data out of a stream.

Protected Member Functions

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

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.

Definition at line 43 of file maccursor.h.


Constructor & Destructor Documentation

Graphics::MacCursor::MacCursor (  ) 

Definition at line 29 of file maccursor.cpp.

Graphics::MacCursor::~MacCursor (  ) 

Definition at line 37 of file maccursor.cpp.


Member Function Documentation

void Graphics::MacCursor::clear (  )  [protected]

Clear the cursor.

Definition at line 41 of file maccursor.cpp.

uint16 Graphics::MacCursor::getHeight (  )  const [inline, virtual]

Return the cursor's height.

Implements Graphics::Cursor.

Definition at line 51 of file maccursor.h.

uint16 Graphics::MacCursor::getHotspotX (  )  const [inline, virtual]

Return the cursor's hotspot's x coordinate.

Implements Graphics::Cursor.

Definition at line 53 of file maccursor.h.

uint16 Graphics::MacCursor::getHotspotY (  )  const [inline, virtual]

Return the cursor's hotspot's y coordinate.

Implements Graphics::Cursor.

Definition at line 55 of file maccursor.h.

virtual byte Graphics::MacCursor::getKeyColor (  )  const [inline, virtual]

Return the cursor's transparent key.

Implements Graphics::Cursor.

Definition at line 57 of file maccursor.h.

virtual const byte* Graphics::MacCursor::getPalette (  )  const [inline, virtual]

Return the cursor's palette in RGB format.

Implements Graphics::Cursor.

Definition at line 61 of file maccursor.h.

uint16 Graphics::MacCursor::getPaletteCount (  )  const [inline, virtual]

Return the number of colors in the palette.

Implements Graphics::Cursor.

Definition at line 63 of file maccursor.h.

byte Graphics::MacCursor::getPaletteStartIndex (  )  const [inline, virtual]

Return the starting index of the palette.

Implements Graphics::Cursor.

Definition at line 62 of file maccursor.h.

const byte* Graphics::MacCursor::getSurface (  )  const [inline, virtual]

Return the cursor's surface.

Implements Graphics::Cursor.

Definition at line 59 of file maccursor.h.

uint16 Graphics::MacCursor::getWidth (  )  const [inline, virtual]

Return the cursor's width.

Implements Graphics::Cursor.

Definition at line 49 of file maccursor.h.

bool Graphics::MacCursor::readFromCRSR ( Common::SeekableReadStream stream,
bool  forceMonochrome,
byte  monochromeInvertedPixelColor 
) [protected]

Definition at line 91 of file maccursor.cpp.

bool Graphics::MacCursor::readFromCURS ( Common::SeekableReadStream stream,
byte  monochromeInvertedPixelColor 
) [protected]

Definition at line 57 of file maccursor.cpp.

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

Read the cursor's data out of a stream.

Definition at line 46 of file maccursor.cpp.


Member Data Documentation

The cursor's hotspot's x coordinate.

Definition at line 75 of file maccursor.h.

The cursor's hotspot's y coordinate.

Definition at line 76 of file maccursor.h.

byte Graphics::MacCursor::_palette[256 *3] [protected]

Definition at line 73 of file maccursor.h.

Definition at line 72 of file maccursor.h.


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


Generated on Sat Sep 26 2020 05:03:15 for ResidualVM by doxygen 1.7.1
curved edge   curved edge