diff options
-rw-r--r-- | graphics/macgui/mactextwindow.cpp | 7 | ||||
-rw-r--r-- | graphics/macgui/mactextwindow.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index bba49292e0..d7c97c033b 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -184,6 +184,13 @@ void MacTextWindow::drawInput() { updateCursorPos(); } +void MacTextWindow::clearInput() { + undrawCursor(); + + _cursorX = 0; + _inputText.clear(); +} + ////////////////// // Cursor stuff static void cursorTimerHandler(void *refCon) { diff --git a/graphics/macgui/mactextwindow.h b/graphics/macgui/mactextwindow.h index ddd6c44d35..00bca8bdcc 100644 --- a/graphics/macgui/mactextwindow.h +++ b/graphics/macgui/mactextwindow.h @@ -72,6 +72,9 @@ public: void undrawCursor(); + const Common::String getInput() { return _inputText; } + void clearInput(); + private: void drawInput(); void updateCursorPos(); |