aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-03 23:17:40 +0200
committerEugene Sandulenko2017-08-04 21:54:20 +0200
commitdd2123f8bfeb81e5cc3f36788df54bd92945bf07 (patch)
tree9ecfef1d5715e54481b1fec3a4815e8410e8e314 /graphics/macgui
parenta5fa164b8e944a710dda6dd3c58c578ba88f72d9 (diff)
downloadscummvm-rg350-dd2123f8bfeb81e5cc3f36788df54bd92945bf07.tar.gz
scummvm-rg350-dd2123f8bfeb81e5cc3f36788df54bd92945bf07.tar.bz2
scummvm-rg350-dd2123f8bfeb81e5cc3f36788df54bd92945bf07.zip
GRAPHICS: MACGUI: Added method to append input to MacTextWindow
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/mactextwindow.cpp6
-rw-r--r--graphics/macgui/mactextwindow.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp
index fb75f41cc5..6b46b05c8d 100644
--- a/graphics/macgui/mactextwindow.cpp
+++ b/graphics/macgui/mactextwindow.cpp
@@ -398,6 +398,12 @@ void MacTextWindow::clearInput() {
_inputText.clear();
}
+void MacTextWindow::appendInput(Common::String str) {
+ _inputText += str;
+
+ drawInput();
+}
+
//////////////////
// Cursor stuff
static void cursorTimerHandler(void *refCon) {
diff --git a/graphics/macgui/mactextwindow.h b/graphics/macgui/mactextwindow.h
index 60ed820187..e6672c77fa 100644
--- a/graphics/macgui/mactextwindow.h
+++ b/graphics/macgui/mactextwindow.h
@@ -67,6 +67,7 @@ public:
const Common::String getInput() { return _inputText; }
void clearInput();
+ void appendInput(Common::String str);
Common::String getSelection(bool formatted = false);