GRAPHICS: MACGUI: Exposed input text from the MacTextWindow

This commit is contained in:
Eugene Sandulenko 2017-07-31 20:01:39 +02:00
parent 3e96a0909d
commit 81c26caaf8
2 changed files with 10 additions and 0 deletions

View File

@ -184,6 +184,13 @@ void MacTextWindow::drawInput() {
updateCursorPos();
}
void MacTextWindow::clearInput() {
undrawCursor();
_cursorX = 0;
_inputText.clear();
}
//////////////////
// Cursor stuff
static void cursorTimerHandler(void *refCon) {

View File

@ -72,6 +72,9 @@ public:
void undrawCursor();
const Common::String getInput() { return _inputText; }
void clearInput();
private:
void drawInput();
void updateCursorPos();