ScummVM API documentation
Agi::TextMgr Class Reference

Public Member Functions

 TextMgr (AgiEngine *vm, Words *words, GfxMgr *gfx)
 
void init (SystemUI *systemUI)
 
void configureScreen (uint16 gameRow)
 
uint16 getWindowRowMin ()
 
void dialogueOpen ()
 
void dialogueClose ()
 
void charPos_Clip (int16 &row, int16 &column)
 
void charPos_Set (int16 row, int16 column)
 
void charPos_Set (TextPos_Struct *posPtr)
 
void charPos_Get (int16 &row, int16 &column)
 
void charPos_Get (TextPos_Struct *posPtr)
 
void charPos_Push ()
 
void charPos_Pop ()
 
void charPos_SetInsideWindow (int16 windowRow, int16 windowColumn)
 
void charAttrib_Set (byte foreground, byte background)
 
byte charAttrib_GetForeground ()
 
byte charAttrib_GetBackground ()
 
void charAttrib_Push ()
 
void charAttrib_Pop ()
 
byte calculateTextBackground (byte background)
 
void display (int16 textNr, int16 textRow, int16 textColumn)
 
void displayText (const char *textPtr, bool disabledLook=false)
 
void displayCharacter (byte character, bool disabledLook=false)
 
void displayTextInsideWindow (const char *textPtr, int16 windowRow, int16 windowColumn)
 
void printAt (int16 textNr, int16 textPos_Row, int16 textPos_Column, int16 text_Width)
 
void print (int16 textNr)
 
bool messageBox (const char *textPtr)
 
void messageBox_KeyPress (uint16 newKey)
 
void drawMessageBox (const char *textPtr, int16 forcedHeight=0, int16 wantedWidth=0, bool forcedWidth=false)
 
void getMessageBoxInnerDisplayDimensions (int16 &x, int16 &y, int16 &width, int16 &height)
 
bool isMouseWithinMessageBox ()
 
void closeWindow ()
 
void statusRow_Set (int16 row)
 
int16 statusRow_Get ()
 
void statusEnable ()
 
void statusDisable ()
 
bool statusEnabled ()
 
void statusDraw ()
 
void statusClear ()
 
void clearLine (int16 row, byte color)
 
void clearLines (int16 row_Upper, int16 row_Lower, byte color)
 
void clearBlock (int16 row_Upper, int16 column_Upper, int16 row_Lower, int16 column_Lower, byte color)
 
void clearBlockInsideWindow (int16 windowRow, int16 windowColumn, int16 width, byte color)
 
bool inputGetEditStatus ()
 
void inputEditOn ()
 
void inputEditOff ()
 
void inputSetCursorChar (int16 cursorChar)
 
byte inputGetCursorChar ()
 
void promptReset ()
 
void promptEnable ()
 
void promptDisable ()
 
bool promptIsEnabled ()
 
void promptRow_Set (int16 row)
 
int16 promptRow_Get ()
 
void promptKeyPress (uint16 newKey)
 
void promptCancelLine ()
 
void promptEchoLine ()
 
void promptRedraw ()
 
void promptClear ()
 
void promptRememberForAutoComplete (bool entered=false)
 
void promptCommandWindow (bool recallLastCommand, uint16 newKey)
 
bool stringWasEntered ()
 
void stringPos_Get (int16 &row, int16 &column)
 
int16 stringGetMaxLen ()
 
void stringSet (const char *text)
 
void stringEdit (int16 stringMaxLen)
 
void stringKeyPress (uint16 newKey)
 
void stringRememberForAutoComplete (bool entered=false)
 
char * stringPrintf (const char *originalText)
 
char * stringWordWrap (const char *originalText, int16 maxWidth, int16 *calculatedWidthPtr=nullptr, int16 *calculatedHeightPtr=nullptr)
 

Public Attributes

TextPos_Struct _textPos
 
int16 _textPosArrayCount
 
TextPos_Struct _textPosArray [5]
 
TextAttrib_Struct _textAttrib
 
int16 _textAttribArrayCount
 
TextAttrib_Struct _textAttribArray [5]
 
uint16 _window_Row_Min
 
uint16 _window_Row_Max
 
int16 _reset_Column
 
MessageState_Struct _messageState
 
bool _messageBoxCancelled
 
bool _statusEnabled
 
int16 _statusRow
 
bool _inputEditEnabled
 
byte _inputCursorChar
 
bool _optionCommandPromptWindow
 
bool _promptEnabled
 
int16 _promptRow
 
int16 _promptCursorPos
 
byte _prompt [42]
 
byte _promptPrevious [42]
 
int16 _inputStringRow
 
int16 _inputStringColumn
 
bool _inputStringEntered
 
int16 _inputStringMaxLen
 
int16 _inputStringCursorPos
 
byte _inputString [42]
 

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