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

Graphics::Cursor Class Reference

A simple cursor representation TODO: Switch to using Graphics::Surface instead of a byte*. More...

#include <cursor.h>

Inheritance diagram for Graphics::Cursor:

List of all members.

Public Member Functions

 Cursor ()
virtual ~Cursor ()
virtual uint16 getWidth () const =0
 Return the cursor's width.
virtual uint16 getHeight () const =0
 Return the cursor's height.
virtual uint16 getHotspotX () const =0
 Return the cursor's hotspot's x coordinate.
virtual uint16 getHotspotY () const =0
 Return the cursor's hotspot's y coordinate.
virtual byte getKeyColor () const =0
 Return the cursor's transparent key.
virtual const bytegetSurface () const =0
 Return the cursor's surface.
virtual const bytegetPalette () const =0
 Return the cursor's palette in RGB format.
virtual byte getPaletteStartIndex () const =0
 Return the starting index of the palette.
virtual uint16 getPaletteCount () const =0
 Return the number of colors in the palette.

Detailed Description

A simple cursor representation TODO: Switch to using Graphics::Surface instead of a byte*.

Definition at line 34 of file graphics/cursor.h.


Constructor & Destructor Documentation

Graphics::Cursor::Cursor (  )  [inline]

Definition at line 36 of file graphics/cursor.h.

virtual Graphics::Cursor::~Cursor (  )  [inline, virtual]

Definition at line 37 of file graphics/cursor.h.


Member Function Documentation

virtual uint16 Graphics::Cursor::getHeight (  )  const [pure virtual]

Return the cursor's height.

Implemented in Graphics::MacCursor, Graphics::WinCursor, and Graphics::DefaultWinCursor.

virtual uint16 Graphics::Cursor::getHotspotX (  )  const [pure virtual]

Return the cursor's hotspot's x coordinate.

Implemented in Graphics::MacCursor, Graphics::WinCursor, and Graphics::DefaultWinCursor.

virtual uint16 Graphics::Cursor::getHotspotY (  )  const [pure virtual]

Return the cursor's hotspot's y coordinate.

Implemented in Graphics::MacCursor, Graphics::WinCursor, and Graphics::DefaultWinCursor.

virtual byte Graphics::Cursor::getKeyColor (  )  const [pure virtual]

Return the cursor's transparent key.

Implemented in Graphics::MacCursor, Graphics::WinCursor, and Graphics::DefaultWinCursor.

virtual const byte* Graphics::Cursor::getPalette (  )  const [pure virtual]

Return the cursor's palette in RGB format.

Implemented in Graphics::MacCursor, Graphics::WinCursor, and Graphics::DefaultWinCursor.

virtual uint16 Graphics::Cursor::getPaletteCount (  )  const [pure virtual]

Return the number of colors in the palette.

Implemented in Graphics::MacCursor, Graphics::WinCursor, and Graphics::DefaultWinCursor.

virtual byte Graphics::Cursor::getPaletteStartIndex (  )  const [pure virtual]

Return the starting index of the palette.

Implemented in Graphics::MacCursor, Graphics::WinCursor, and Graphics::DefaultWinCursor.

virtual const byte* Graphics::Cursor::getSurface (  )  const [pure virtual]

Return the cursor's surface.

Implemented in Graphics::MacCursor, Graphics::WinCursor, and Graphics::DefaultWinCursor.

virtual uint16 Graphics::Cursor::getWidth (  )  const [pure virtual]

Return the cursor's width.

Implemented in Graphics::MacCursor, Graphics::WinCursor, and Graphics::DefaultWinCursor.


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


Generated on Sat May 18 2019 05:06:10 for ResidualVM by doxygen 1.7.1
curved edge   curved edge