diff options
author | Eugene Sandulenko | 2017-07-31 20:01:39 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-01 10:42:22 +0200 |
commit | 81c26caaf86f439ed3f1699f13252afd45c52e18 (patch) | |
tree | 2f61ecbc7c341b9ee9236ce5757379b78c155fee | |
parent | 3e96a0909d4c96f3994e6f3115c22ffdb28562dd (diff) | |
download | scummvm-rg350-81c26caaf86f439ed3f1699f13252afd45c52e18.tar.gz scummvm-rg350-81c26caaf86f439ed3f1699f13252afd45c52e18.tar.bz2 scummvm-rg350-81c26caaf86f439ed3f1699f13252afd45c52e18.zip |
GRAPHICS: MACGUI: Exposed input text from the MacTextWindow
-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(); |