GRAPHICS: MACGUI: Exposed input text from the MacTextWindow
This commit is contained in:
parent
3e96a0909d
commit
81c26caaf8
2 changed files with 10 additions and 0 deletions
|
@ -184,6 +184,13 @@ void MacTextWindow::drawInput() {
|
|||
updateCursorPos();
|
||||
}
|
||||
|
||||
void MacTextWindow::clearInput() {
|
||||
undrawCursor();
|
||||
|
||||
_cursorX = 0;
|
||||
_inputText.clear();
|
||||
}
|
||||
|
||||
//////////////////
|
||||
// Cursor stuff
|
||||
static void cursorTimerHandler(void *refCon) {
|
||||
|
|
|
@ -72,6 +72,9 @@ public:
|
|||
|
||||
void undrawCursor();
|
||||
|
||||
const Common::String getInput() { return _inputText; }
|
||||
void clearInput();
|
||||
|
||||
private:
|
||||
void drawInput();
|
||||
void updateCursorPos();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue