13 #ifndef MADS_NEBULAR_BONUS_DOS_TEXT_SCREEN_H 14 #define MADS_NEBULAR_BONUS_DOS_TEXT_SCREEN_H 16 #include "common/rect.h" 17 #include "common/scummsys.h" 18 #include "common/str.h" 25 namespace RexNebular {
35 kRasterWidth = kColumns * kCellWidth,
36 kRasterHeight = kRows * kCellHeight
46 void clear(byte character = 0x20, byte attribute = 0x07);
47 bool isValidCell(
int x,
int y)
const;
48 const Cell &getCell(
int x,
int y)
const;
49 void setCell(
int x,
int y, byte character, byte attribute);
50 void setCharacter(
int x,
int y, byte character);
51 void setAttribute(
int x,
int y, byte attribute);
55 void drawBox(
const Common::Rect &rect, byte attribute,
bool doubleLine =
true);
56 void drawShadow(
const Common::Rect &rect, byte shadowAttribute = 0x08);
57 void drawSeparator(
const Common::Rect &rect,
int y, byte attribute);
59 byte attribute, byte hotkeyAttribute = 0x0F);
61 byte attribute, byte hotkeyAttribute = 0x0F);
67 int drawText(
int x,
int y,
const Common::String &text, byte attribute,
68 byte hotkeyAttribute,
bool parseAccelerator =
true,
int maxCells = -1);
69 int drawCenteredText(
int y,
int left,
int right,
const Common::String &text,
70 byte attribute, byte hotkeyAttribute,
bool parseAccelerator =
true);
75 static void installVGAPalette();
81 Cell _cells[kColumns * kRows];
83 static int indexOf(
int x,
int y) {
return y * kColumns + x; }
91 #endif // MADS_NEBULAR_BONUS_DOS_TEXT_SCREEN_H
Definition: dos_text_screen.h:39
Definition: dos_text_screen.h:28
Definition: formatinfo.h:28
signed char * fill(signed char *first, signed char *last, Value val)
Definition: algorithm.h:168
Definition: anim_timer.h:27