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 displayText(
const char *textPtr,
bool disabledLook =
false);
124 void displayCharacter(byte character,
bool disabledLook =
false);
126 void displayTextInsideWindow(
const char *textPtr, int16 windowRow, int16 windowColumn);
130 void printAt(int16 textNr, int16 textPos_Row, int16 textPos_Column, int16 text_Width);
131 void print(int16 textNr);
133 bool messageBox(
const char *textPtr);
134 void messageBox_KeyPress(uint16 newKey);
136 bool _messageBoxCancelled;
138 void drawMessageBox(
const char *textPtr, int16 forcedHeight = 0, int16 wantedWidth = 0,
bool forcedWidth =
false);
139 void getMessageBoxInnerDisplayDimensions(int16 &x, int16 &y, int16 &width, int16 &height);
140 bool isMouseWithinMessageBox();
143 void statusRow_Set(int16 row);
144 int16 statusRow_Get();
147 void statusDisable();
148 bool statusEnabled();
156 void clearLine(int16 row, byte color);
157 void clearLines(int16 row_Upper, int16 row_Lower, byte color);
158 void clearBlock(int16 row_Upper, int16 column_Upper, int16 row_Lower, int16 column_Lower, byte color);
160 void clearBlockInsideWindow(int16 windowRow, int16 windowColumn, int16 width, byte color);
162 bool _inputEditEnabled;
163 byte _inputCursorChar;
165 bool _optionCommandPromptWindow;
169 int16 _promptCursorPos;
171 byte _promptPrevious[42];
173 bool inputGetEditStatus();
176 void inputSetCursorChar(int16 cursorChar);
177 byte inputGetCursorChar();
181 void promptDisable();
182 bool promptIsEnabled();
184 void promptRow_Set(int16 row);
185 int16 promptRow_Get();
186 void promptKeyPress(uint16 newKey);
187 void promptCancelLine();
188 void promptEchoLine();
191 void promptRememberForAutoComplete(
bool entered =
false);
193 void promptCommandWindow(
bool recallLastCommand, uint16 newKey);
195 int16 _inputStringRow;
196 int16 _inputStringColumn;
197 bool _inputStringEntered;
198 int16 _inputStringMaxLen;
199 int16 _inputStringCursorPos;
200 byte _inputString[42];
202 bool stringWasEntered();
203 void stringPos_Get(int16 &row, int16 &column);
204 int16 stringGetMaxLen();
205 void stringSet(
const char *text);
206 void stringEdit(int16 stringMaxLen);
207 void stringKeyPress(uint16 newKey);
208 void stringRememberForAutoComplete(
bool entered =
false);
210 char *stringPrintf(
const char *originalText);
211 char *stringWordWrap(
const char *originalText, int16 maxWidth, int16 *calculatedWidthPtr =
nullptr, int16 *calculatedHeightPtr =
nullptr);
Definition: systemui.h:51
Definition: graphics.h:58