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

Graphics::MacCursor Class Reference

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.
byte getKeyColor () const
 Return the cursor's transparent key.
const bytegetSurface () const
 Return the cursor's surface.
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)
 Read the cursor's data out of a stream.

Private Member Functions

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

Private 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 (  )  [private]

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.

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

Return the cursor's transparent key.

Implements Graphics::Cursor.

Definition at line 57 of file maccursor.h.

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 
) [private]

Definition at line 85 of file maccursor.cpp.

bool Graphics::MacCursor::readFromCURS ( Common::SeekableReadStream stream  )  [private]

Definition at line 57 of file maccursor.cpp.

bool Graphics::MacCursor::readFromStream ( Common::SeekableReadStream stream,
bool  forceMonochrome = false 
)

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.

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 14 2019 05:04:11 for ResidualVM by doxygen 1.7.1
curved edge   curved edge