diff options
author | VelocityRa | 2017-04-04 02:07:35 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-17 23:45:22 +0200 |
commit | 2b06c02d7deb866138ff6fa8f469d48313d9afbd (patch) | |
tree | 32800dbda96962593bc3484d3d3ef25d9afbe22b /graphics/macgui/mactext.h | |
parent | 0f65852d2f8f4ea2814cb7f626617e6b7c27f49f (diff) | |
download | scummvm-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.h | 4 |
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(); } |