aboutsummaryrefslogtreecommitdiff
path: root/gui/EditTextWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/EditTextWidget.h')
-rw-r--r--gui/EditTextWidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/EditTextWidget.h b/gui/EditTextWidget.h
index e321d4715a..c81e50a29f 100644
--- a/gui/EditTextWidget.h
+++ b/gui/EditTextWidget.h
@@ -34,6 +34,7 @@ protected:
bool _caretVisible;
uint32 _caretTime;
int _pos;
+ int _labelOffset;
public:
EditTextWidget(Dialog *boss, int x, int y, int w, int h, const String &text);
@@ -47,6 +48,9 @@ protected:
void drawWidget(bool hilite);
void drawCaret(bool erase);
void lostFocusWidget() { _backupString = _label; drawCaret(true); }
+
+ int getCaretPos();
+ bool adjustOffset();
};
#endif