22 #ifndef ULTIMA4_VIEWS_TEXTVIEW_H 23 #define ULTIMA4_VIEWS_TEXTVIEW_H 25 #include "ultima/ultima4/views/view.h" 26 #include "ultima/ultima4/gfx/image.h" 27 #include "common/array.h" 28 #include "common/rect.h" 33 #define PRINTF_LIKE(x,y) 56 TextView(
int x,
int y,
int columns,
int rows);
61 int getCursorX()
const {
64 int getCursorY()
const {
67 bool getCursorEnabled()
const {
70 int getWidth()
const {
77 void drawChar(
int chr,
int x,
int y);
90 void textAt(
int x,
int y,
const char *fmt, ...);
95 void optionAt(
int x,
int y,
char key,
const char *fmt, ...);
99 void setCursorFollowsText(
bool follows) {
100 _cursorFollowsText = follows;
102 void setCursorPos(
int x,
int y,
bool clearOld =
true);
104 void disableCursor();
106 static void cursorTimer(
void *data);
109 void setFontColor(ColorFG fg, ColorBG bg);
110 void setFontColorFG(ColorFG fg);
111 void setFontColorBG(ColorBG bg);
int _cursorY
Definition: textview.h:51
char getOptionAt(const Common::Point &mousePos)
void textSelectedAt(int x, int y, const char *text)
int _cursorPhase
Definition: textview.h:52
void drawChar(int chr, int x, int y)
Definition: textview.h:41
void optionAt(int x, int y, char key, const char *fmt,...)
static Image * _charset
Definition: textview.h:53
Common::String colorizeString(Common::String input, ColorFG color, uint colorstart, uint colorlength=0)
Definition: detection.h:27
Common::String colorizeStatus(char statustype)
bool _cursorEnabled
Definition: textview.h:49
Common::Rect getTextBounds(int x, int y, int textWidth) const
bool _cursorFollowsText
Definition: textview.h:50
Definition: movie_decoder.h:32
void textAt(int x, int y, const char *fmt,...)
void drawCharMasked(int chr, int x, int y, byte mask)
int _rows
Definition: textview.h:48