32 #define TEXTPOSARRAY_MAX 5 37 byte combinedForeground;
38 byte combinedBackground;
41 #define TEXTATTRIBARRAY_MAX 5 45 int16 wanted_Text_Width;
53 int16 textSize_Height;
54 uint16 printed_Height;
56 int16 backgroundPos_x;
57 int16 backgroundPos_y;
58 int16 backgroundSize_Width;
59 int16 backgroundSize_Height;
63 #define FONT_VISUAL_WIDTH 4 64 #define FONT_VISUAL_HEIGHT 8 66 #define FONT_DISPLAY_WIDTH 8 67 #define FONT_DISPLAY_HEIGHT 8 68 #define FONT_ROW_CHARACTERS 25 69 #define FONT_COLUMN_CHARACTERS 40 70 #define FONT_BYTES_PER_CHARACTER 8 74 #define TEXT_STRING_MAX_SIZE 40 90 int16 _textPosArrayCount;
94 int16 _textAttribArrayCount;
97 uint16 _window_Row_Min;
98 uint16 _window_Row_Max;
101 void configureScreen(uint16 gameRow);
102 uint16 getWindowRowMin();
105 void dialogueClose();
107 void charPos_Clip(int16 &row, int16 &column);
108 void charPos_Set(int16 row, int16 column);
110 void charPos_Get(int16 &row, int16 &column);
114 void charPos_SetInsideWindow(int16 windowRow, int16 windowColumn);
115 void charAttrib_Set(byte foreground, byte background);
116 byte charAttrib_GetForeground();
117 byte charAttrib_GetBackground();
118 void charAttrib_Push();
119 void charAttrib_Pop();
120 byte calculateTextBackground(byte background);
122 void display(int16 textNr, int16 textRow, int16 textColumn);
123 void displayAdjustRTL(int16 textRow, int16 textColumn,
char *text, int16 calculatedWidth);
124 void displayText(
const char *textPtr,
bool disabledLook =
false);
125 void displayCharacter(byte character,
bool disabledLook =
false);
127 void displayTextInsideWindow(
const char *textPtr, int16 windowRow, int16 windowColumn);
131 void printAt(int16 textNr, int16 textPos_Row, int16 textPos_Column, int16 text_Width);
132 void print(int16 textNr);
134 bool messageBox(
const char *textPtr);
135 void messageBox_KeyPress(uint16 newKey);
137 bool _messageBoxCancelled;
139 void drawMessageBox(
const char *textPtr, int16 forcedHeight = 0, int16 wantedWidth = 0,
bool forcedWidth =
false);
140 void getMessageBoxInnerDisplayDimensions(int16 &x, int16 &y, int16 &width, int16 &height);
141 bool isMouseWithinMessageBox();
142 void closeWindow(
bool ttsStopSpeech =
true);
144 void statusRow_Set(int16 row);
145 int16 statusRow_Get();
148 void statusDisable();
149 bool statusEnabled();
151 void statusDraw(
bool ttsVoiceScore =
false,
bool ttsVoiceSound =
false);
157 void clearLine(int16 row, byte color);
158 void clearLines(int16 row_Upper, int16 row_Lower, byte color);
159 void clearBlock(int16 row_Upper, int16 column_Upper, int16 row_Lower, int16 column_Lower, byte color);
161 void clearBlockInsideWindow(int16 windowRow, int16 windowColumn, int16 width, byte color);
163 bool _inputEditEnabled;
164 byte _inputCursorChar;
166 bool _optionCommandPromptWindow;
170 int16 _promptCursorPos;
172 byte _promptPrevious[42];
174 bool inputGetEditStatus();
177 void inputSetCursorChar(int16 cursorChar);
178 byte inputGetCursorChar();
182 void promptDisable();
183 bool promptIsEnabled();
185 void promptRow_Set(int16 row);
186 int16 promptRow_Get();
187 void promptKeyPress(uint16 newKey);
188 void promptCancelLine();
189 void promptEchoLine();
192 void promptRememberForAutoComplete(
bool entered =
false);
194 void promptCommandWindow(
bool recallLastCommand, uint16 newKey);
196 int16 _inputStringRow;
197 int16 _inputStringColumn;
198 bool _inputStringEntered;
199 int16 _inputStringMaxLen;
200 int16 _inputStringCursorPos;
201 byte _inputString[42];
203 bool stringWasEntered();
204 void stringPos_Get(int16 &row, int16 &column);
205 int16 stringGetMaxLen();
206 void stringSet(
const char *text);
207 void stringEdit(int16 stringMaxLen);
208 void stringKeyPress(uint16 newKey);
209 void stringRememberForAutoComplete(
bool entered =
false);
211 char *stringPrintf(
const char *originalText);
212 char *stringWordWrap(
const char *originalText, int16 maxWidth, int16 *calculatedWidthPtr =
nullptr, int16 *calculatedHeightPtr =
nullptr);
Definition: systemui.h:51
Definition: graphics.h:58