mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
GRAPHICS: MACGUI: Exposed input text from the MacTextWindow
This commit is contained in:
parent
3e96a0909d
commit
81c26caaf8
@ -184,6 +184,13 @@ void MacTextWindow::drawInput() {
|
|||||||
updateCursorPos();
|
updateCursorPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MacTextWindow::clearInput() {
|
||||||
|
undrawCursor();
|
||||||
|
|
||||||
|
_cursorX = 0;
|
||||||
|
_inputText.clear();
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////
|
//////////////////
|
||||||
// Cursor stuff
|
// Cursor stuff
|
||||||
static void cursorTimerHandler(void *refCon) {
|
static void cursorTimerHandler(void *refCon) {
|
||||||
|
@ -72,6 +72,9 @@ public:
|
|||||||
|
|
||||||
void undrawCursor();
|
void undrawCursor();
|
||||||
|
|
||||||
|
const Common::String getInput() { return _inputText; }
|
||||||
|
void clearInput();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void drawInput();
|
void drawInput();
|
||||||
void updateCursorPos();
|
void updateCursorPos();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user