ScummVM
LastExpress::Cursor Class Reference

#include <cursor.h>

Public Member Functions

 Cursor ()
 
bool load (Common::SeekableReadStream *stream)
 
void show (bool visible) const
 
void setStyle (CursorStyle style)
 
CursorStyle getStyle () const
 

Private Member Functions

bool checkStyle (CursorStyle style) const
 
const uint16getCursorImage (CursorStyle style) const
 

Private Attributes

CursorStyle _current
 
struct {
   uint16   image [32 *32]
 
   uint16   hotspotX
 
   uint16   hotspotY
 
_cursors [kCursorMAX]
 

Friends

Common::Rect Icon::draw (Graphics::Surface *surface)
 

Detailed Description

Definition at line 63 of file cursor.h.

Constructor & Destructor Documentation

◆ Cursor()

Cursor::Cursor ( )

Definition at line 35 of file cursor.cpp.

Member Function Documentation

◆ checkStyle()

bool Cursor::checkStyle ( CursorStyle  style) const
private

Definition at line 71 of file cursor.cpp.

◆ getCursorImage()

const uint16 * Cursor::getCursorImage ( CursorStyle  style) const
private

Definition at line 99 of file cursor.cpp.

◆ getStyle()

CursorStyle LastExpress::Cursor::getStyle ( ) const
inline

Definition at line 71 of file cursor.h.

◆ load()

bool Cursor::load ( Common::SeekableReadStream stream)

Definition at line 39 of file cursor.cpp.

◆ setStyle()

void Cursor::setStyle ( CursorStyle  style)

Definition at line 80 of file cursor.cpp.

◆ show()

void Cursor::show ( bool  visible) const

Definition at line 67 of file cursor.cpp.

Friends And Related Function Documentation

◆ Icon::draw

Common::Rect Icon::draw ( Graphics::Surface surface)
friend

Member Data Documentation

◆ _current

CursorStyle LastExpress::Cursor::_current
private

Definition at line 75 of file cursor.h.

◆ _cursors

struct { ... } LastExpress::Cursor::_cursors[kCursorMAX]

◆ hotspotX

uint16 LastExpress::Cursor::hotspotX

Definition at line 80 of file cursor.h.

◆ hotspotY

uint16 LastExpress::Cursor::hotspotY

Definition at line 80 of file cursor.h.

◆ image

uint16 LastExpress::Cursor::image[32 *32]

Definition at line 79 of file cursor.h.


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