25#include "common/scummsys.h"
26#include "common/array.h"
27#include "titanic/support/rect.h"
28#include "titanic/support/string.h"
29#include "titanic/support/text_cursor.h"
33enum TextCommand { TEXTCMD_NPC = 26, TEXTCMD_SET_COLOR = 27 };
35enum WriteCharacterResult {
36 WC_IN_BOUNDS = 0, WC_OUTSIDE_TOP = -1, WC_OUTSIDE_BOTTOM = -2,
37 WC_OUTSIDE_LEFT = -3, WC_OUTSIDE_RIGHT = -4
58 WriteCharacterResult writeChar(
CVideoSurface *surface,
unsigned char c,
65 void extendBounds(
Point &textSize,
byte c,
int maxWidth)
const;
70 void checkLineWrap(
Point &textSize,
int maxWidth,
const char *&str)
const;
76 CharEntry _chars[256];
77 byte _fontR, _fontG, _fontB;
104 const CString &str,
int lineWidth = 0);
Definition: text_cursor.h:33
Definition: video_surface.h:43
int stringWidth(const CString &text) const
void load(int fontNumber)
void setColor(byte r, byte g, byte b)
void writeString(CVideoSurface *surface, const Point &destPos, Rect &clipRect, const CString &str, int lineWidth=0)
int writeString(CVideoSurface *surface, const Rect &rect1, const Rect &destRect, int yOffset, const CString &str, CTextCursor *textCursor)
int getTextBounds(const CString &str, int maxWidth, Point *sizeOut) const