#include <maccursor.h>
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. | |
A Mac crsr or CURS cursor
|
inlinevirtual |
Return the cursor's width.
Implements Graphics::Cursor.
|
inlinevirtual |
Return the cursor's height.
Implements Graphics::Cursor.
|
inlinevirtual |
Return the cursor's hotspot's x coordinate.
Implements Graphics::Cursor.
|
inlinevirtual |
Return the cursor's hotspot's y coordinate.
Implements Graphics::Cursor.
|
inlinevirtual |
Return the cursor's transparent key.
Implements Graphics::Cursor.
Reimplemented in Director::Cursor.
|
inlinevirtual |
Return the cursor's surface.
Implements Graphics::Cursor.
|
inlinevirtual |
Return the cursor's palette in RGB format.
Implements Graphics::Cursor.
Reimplemented in Director::Cursor.
|
inlinevirtual |
Return the starting index of the palette.
Implements Graphics::Cursor.
|
inlinevirtual |
Return the number of colors in the palette.
Implements Graphics::Cursor.
| 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.
|
protected |
Clear the cursor.