From dd2123f8bfeb81e5cc3f36788df54bd92945bf07 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 3 Aug 2017 23:17:40 +0200 Subject: GRAPHICS: MACGUI: Added method to append input to MacTextWindow --- graphics/macgui/mactextwindow.cpp | 6 ++++++ graphics/macgui/mactextwindow.h | 1 + 2 files changed, 7 insertions(+) (limited to 'graphics') 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); -- cgit v1.2.3