aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactext.h
diff options
context:
space:
mode:
authorVelocityRa2017-04-04 02:07:35 +0300
committerEugene Sandulenko2017-07-17 23:45:22 +0200
commit2b06c02d7deb866138ff6fa8f469d48313d9afbd (patch)
tree32800dbda96962593bc3484d3d3ef25d9afbe22b /graphics/macgui/mactext.h
parent0f65852d2f8f4ea2814cb7f626617e6b7c27f49f (diff)
downloadscummvm-rg350-2b06c02d7deb866138ff6fa8f469d48313d9afbd.tar.gz
scummvm-rg350-2b06c02d7deb866138ff6fa8f469d48313d9afbd.tar.bz2
scummvm-rg350-2b06c02d7deb866138ff6fa8f469d48313d9afbd.zip
GRAPHICS: Add MacText::appendText() variants that accept text format args
Made 1 helper method and 1 function to reduce duplication size as much as possible and still keep them useful for other purposes.
Diffstat (limited to 'graphics/macgui/mactext.h')
-rw-r--r--graphics/macgui/mactext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.h b/graphics/macgui/mactext.h
index f0a3ed6a0c..cd2adb3f0e 100644
--- a/graphics/macgui/mactext.h
+++ b/graphics/macgui/mactext.h
@@ -95,7 +95,9 @@ public:
void setInterLinear(int interLinear);
void draw(ManagedSurface *g, int x, int y, int w, int h, int xoff, int yoff);
- void appendText(Common::String str);
+ void resizeAndFormatLines(uint numNewLines, MacFontRun * fontRun);
+ void appendText(Common::String str, int fontId = kMacFontChicago, int fontSize = 12, int fontSlant = kMacFontRegular);
+ void appendTextDefault(Common::String str);
void replaceLastLine(Common::String str);
int getLineCount() { return _textLines.size(); }