ScummVM API documentation
Supernova::Screen Class Reference

Classes

struct  ImageInfo
 

Public Member Functions

 Screen (SupernovaEngine *vm, ResourceManager *resMan)
 
int getScreenWidth () const
 
int getScreenHeight () const
 
int getViewportBrightness () const
 
void setViewportBrightness (int brightness)
 
int getGuiBrightness () const
 
void setGuiBrightness (int brightness)
 
MSNImagegetCurrentImage ()
 
const ImageInfogetImageInfo (ImageId id) const
 
bool isMessageShown () const
 
void paletteFadeIn (int maxViewportBrightness)
 
void paletteFadeOut (int minBrightness)
 
void paletteBrightness ()
 
void renderImage (ImageId id, bool removeImage=false)
 
void renderImage (int section)
 
bool setCurrentImage (int filenumber)
 
void saveScreen (int x, int y, int width, int height)
 
void saveScreen (const GuiElement &guiElement)
 
void restoreScreen ()
 
void renderRoom (Room &room)
 
void renderMessage (const char *text, MessagePosition position=kMessageNormal, int positionX=-1, int positionY=-1)
 
void renderMessage (const Common::String &text, MessagePosition position=kMessageNormal)
 
void renderMessage (int stringId, MessagePosition position=kMessageNormal, Common::String var1="", Common::String var2="")
 
void removeMessage ()
 
void renderText (const uint16 character)
 
void renderText (const char *text)
 
void renderText (const Common::String &text)
 
void renderText (int stringId)
 
void renderText (const uint16 character, int x, int y, byte color)
 
void renderText (const char *text, int x, int y, byte color)
 
void renderText (const Common::String &text, int x, int y, byte color)
 
void renderText (int stringId, int x, int y, byte color)
 
void renderText (const GuiElement &guiElement)
 
void renderBox (int x, int y, int width, int height, byte color)
 
void renderBox (const GuiElement &guiElement)
 
void setColor63 (byte value)
 
Common::Point getTextCursorPos ()
 
void setTextCursorPos (int x, int y)
 
byte getTextCursorColor ()
 
void setTextCursorColor (byte color)
 
void update ()
 
void changeCursor (ResourceManager::CursorId)
 

Static Public Member Functions

static void initPalette ()
 
static int textWidth (const uint16 key)
 
static int textWidth (const char *text)
 
static int textWidth (const Common::String &text)
 

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