ScummVM API documentation
Lure::Surface Class Reference
Inheritance diagram for Lure::Surface:
Lure::RoomLayer

Public Member Functions

 Surface (MemoryBlock *src, uint16 width, uint16 height)
 
 Surface (uint16 width, uint16 height)
 
uint16 width ()
 
uint16 height ()
 
MemoryBlockdata ()
 
void loadScreen (uint16 resourceId)
 
void loadScreen (MemoryBlock *data)
 
int writeChar (uint16 x, uint16 y, uint8 ascii, bool transparent, int color)
 
void writeString (uint16 x, uint16 y, Common::String line, bool transparent, int color=-1, bool varLength=true)
 
void writeSubstring (uint16 x, uint16 y, Common::String line, int len, bool transparent, int color=-1, bool varLength=true)
 
void transparentCopyTo (Surface *dest)
 
void copyTo (Surface *dest)
 
void copyTo (Surface *dest, uint16 x, uint16 y)
 
void copyTo (Surface *dest, const Common::Rect &srcBounds, uint16 destX, uint16 destY, int transparentColor=-1)
 
void copyFrom (MemoryBlock *src)
 
void copyFrom (MemoryBlock *src, uint32 destOffset)
 
void empty ()
 
void fillRect (const Common::Rect &r, uint8 color)
 
void createDialog ()
 
void refreshDialog ()
 
void copyToScreen (uint16 x, uint16 y)
 
void centerOnScreen ()
 
bool getString (Common::String &line, int maxSize, bool isNumeric, bool varLength, int16 x, int16 y)
 

Static Public Member Functions

static uint16 textX ()
 
static uint16 textY ()
 
static void getDialogBounds (Common::Point &size, int charWidth, int numLines, bool squashedLines=true)
 
static void initialize ()
 
static void deinitialize ()
 
static uint16 textWidth (const char *s, int numChars=0)
 
static void wordWrap (char *text, uint16 width, char **&lines, uint8 &numLines)
 
static SurfacenewDialog (uint16 width, uint8 numLines, const char **lines, bool varLength=true, int color=-1, bool squashedLines=true)
 
static SurfacenewDialog (uint16 width, const char *lines, int color=-1)
 
static SurfacegetScreen (uint16 resourceId)
 

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