aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2013-11-24 00:20:29 +0100
committerJohannes Schickel2013-11-24 00:20:29 +0100
commit95f07fd405cd72822faef1a0e0bffe953a8856df (patch)
tree9e1ebd7294526815fe0a1dbaef6c81f525f368c8 /gui
parent3be846cfd7fdacf985334e05e60cd5a12aae526a (diff)
downloadscummvm-rg350-95f07fd405cd72822faef1a0e0bffe953a8856df.tar.gz
scummvm-rg350-95f07fd405cd72822faef1a0e0bffe953a8856df.tar.bz2
scummvm-rg350-95f07fd405cd72822faef1a0e0bffe953a8856df.zip
GUI: Document EditableWidget::getEditRect.
Diffstat (limited to 'gui')
-rw-r--r--gui/widgets/editable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/widgets/editable.h b/gui/widgets/editable.h
index 4a18d5e689..63a1942311 100644
--- a/gui/widgets/editable.h
+++ b/gui/widgets/editable.h
@@ -78,6 +78,11 @@ protected:
virtual void startEditMode() = 0;
virtual void endEditMode() = 0;
virtual void abortEditMode() = 0;
+ /**
+ * The area where text input is being made. This should exactly match the
+ * rect with which the actual edit string is drawn otherwise nasty
+ * graphics glitches when redrawing the caret can occur.
+ */
virtual Common::Rect getEditRect() const = 0;
virtual int getCaretOffset() const;
void drawCaret(bool erase);