ScummVM API documentation
Hugo::Screen Class Referenceabstract
Inheritance diagram for Hugo::Screen:
Hugo::Screen_v1d Hugo::Screen_v1w

Classes

struct  Rect
 

Public Member Functions

 Screen (HugoEngine *vm)
 
virtual void loadFont (int16 fontId)=0
 
virtual void loadFontArr (Common::ReadStream &in)=0
 
int16 fontHeight () const
 
int16 stringLength (const char *s) const
 
void displayBackground ()
 
void displayFrame (const int sx, const int sy, Seq *seq, const bool foreFl)
 
void displayList (int update,...)
 
void displayRect (const int16 x, const int16 y, const int16 dx, const int16 dy)
 
void drawBoundaries ()
 
void drawRectangle (const bool filledFl, const int16 x1, const int16 y1, const int16 x2, const int16 y2, const int color)
 
void drawShape (const int x, const int y, const int color1, const int color2)
 
void drawStatusText ()
 
void freeScreen ()
 
void hideCursor ()
 
void initDisplay ()
 
void initNewScreenDisplay ()
 
void loadPalette (Common::ReadStream &in)
 
void moveImage (ImagePtr srcImage, const int16 x1, const int16 y1, const int16 dx, int16 dy, const int16 width1, ImagePtr dstImage, const int16 x2, const int16 y2, const int16 width2)
 
void remapPal (uint16 oldIndex, uint16 newIndex)
 
void resetInventoryObjId ()
 
void restorePal (Common::ReadStream *f)
 
void savePal (Common::WriteStream *f) const
 
void setBackgroundColor (const uint16 color)
 
void setCursorPal ()
 
void selectInventoryObjId (const int16 objId)
 
void shadowStr (int16 sx, const int16 sy, const char *s, const byte color)
 
void showCursor ()
 
void userHelp () const
 
void writeStr (int16 sx, const int16 sy, const char *s, const byte color)
 
Icondib & getIconBuffer ()
 
Viewdib & getBackBuffer ()
 
Viewdib & getBackBufferBackup ()
 
Viewdib & getFrontBuffer ()
 
Viewdib & getGUIBuffer ()
 

Protected Member Functions

bool isInX (const int16 x, const Rect *rect) const
 
bool isInY (const int16 y, const Rect *rect) const
 
bool isOverlapping (const Rect *rectA, const Rect *rectB) const
 
virtual OverlayState findOvl (Seq *seqPtr, ImagePtr dstPtr, uint16 y)=0
 

Protected Attributes

HugoEngine_vm
 
bool fontLoadedFl [kNumFonts]
 
byte * _arrayFont [kNumFonts]
 
byte _fnt
 
byte _fontdata [kNumFonts][kFontSize]
 
byte * _font [kNumFonts][kFontLength]
 
byte * _mainPalette
 
int16 _arrayFontSize [kNumFonts]
 
Viewdib _frontBuffer
 

Static Protected Attributes

static const int kRectListSize = 16
 
static const int kBlitListSize = kRectListSize * 2
 
static const int kShapeSize = 24
 
static const int kFontLength = 128
 
static const int kFontSize = 1200
 
static const int kNumFonts = 3
 
static const byte stdMouseCursorHeight = 20
 
static const byte stdMouseCursorWidth = 12
 

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