Skip to content

Commit

Permalink
GRAPHICS: MACGUI: Exposed input text from the MacTextWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 1, 2017
1 parent 3e96a09 commit 81c26ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions graphics/macgui/mactextwindow.cpp
Expand Up @@ -184,6 +184,13 @@ void MacTextWindow::drawInput() {
updateCursorPos();
}

void MacTextWindow::clearInput() {
undrawCursor();

_cursorX = 0;
_inputText.clear();
}

//////////////////
// Cursor stuff
static void cursorTimerHandler(void *refCon) {
Expand Down
3 changes: 3 additions & 0 deletions graphics/macgui/mactextwindow.h
Expand Up @@ -72,6 +72,9 @@ class MacTextWindow : public MacWindow {

void undrawCursor();

const Common::String getInput() { return _inputText; }
void clearInput();

private:
void drawInput();
void updateCursorPos();
Expand Down

0 comments on commit 81c26ca

Please sign in to comment.