22 #ifndef SCI_GRAPHICS_TEXT16_H 23 #define SCI_GRAPHICS_TEXT16_H 31 #define SCI_TEXT16_ALIGNMENT_RIGHT -1 32 #define SCI_TEXT16_ALIGNMENT_CENTER 1 33 #define SCI_TEXT16_ALIGNMENT_LEFT 0 41 class GfxMacFontManager;
50 GuiResourceId GetFontId();
52 void SetFont(GuiResourceId fontId);
54 int16 CodeProcessing(
const char *&text, GuiResourceId orgFontId, int16 orgPenColor,
bool doingDrawing);
57 void ClearChar(int16 chr);
60 int16 GetLongest(
const char *&text, int16 maxWidth, GuiResourceId orgFontId);
61 void Width(
const char *text, int16 from, int16 len, GuiResourceId orgFontId, int16 &textWidth, int16 &textHeight,
bool restoreFont);
62 void StringWidth(
const Common::String &str, GuiResourceId orgFontId, int16 &textWidth, int16 &textHeight);
64 void ShowString(
const Common::String &str, GuiResourceId orgFontId, int16 orgPenColor);
66 void DrawString(
const Common::String &str, GuiResourceId orgFontId, int16 orgPenColor);
67 int16 Size(
Common::Rect &rect,
const char *text, uint16 textLanguage, GuiResourceId fontId, int16 maxWidth);
68 void Draw(
const char *text, int16 from, int16 len, GuiResourceId orgFontId, int16 orgPenColor);
69 void Show(
const char *text, int16 from, int16 len, GuiResourceId orgFontId, int16 orgPenColor);
70 void Box(
const char *text, uint16 languageSplitter,
bool show,
const Common::Rect &rect, TextAlignment alignment, GuiResourceId fontId);
72 void Box(
const char *text,
bool show,
const Common::Rect &rect, TextAlignment alignment, GuiResourceId fontId) {
73 Box(text, 0, show, rect, alignment, fontId);
81 reg_t allocAndFillReferenceRectArray();
83 void kernelTextSize(
const char *text, uint16 textLanguage, int16 font, int16 maxWidth, int16 *textWidth, int16 *textHeight);
84 void kernelTextFonts(
int argc,
reg_t *argv);
85 void kernelTextColors(
int argc,
reg_t *argv);
87 void macTextSize(
const Common::String &text, GuiResourceId sciFontId, GuiResourceId origSciFontId, int16 maxWidth, int16 *textWidth, int16 *textHeight);
88 void macDraw(
const Common::String &text,
Common::Rect rect, TextAlignment alignment, GuiResourceId sciFontId, GuiResourceId origSciFontId, int16 color);
91 bool SwitchToFont1001OnKorean(
const char *text, uint16 languageSplitter);
92 bool SwitchToFont900OnSjis(
const char *text, uint16 languageSplitter);
93 static bool isJapaneseNewLine(int16 curChar, int16 nextChar);
103 GuiResourceId *_codeFonts;
104 int _codeColorsCount;
107 bool _useEarlyGetLongestTextCalculations;
110 CodeRefRectArray _codeRefRects;
115 #endif // SCI_GRAPHICS_TEXT16_H
Definition: formatinfo.h:28
Definition: vm_types.h:39