diff options
Diffstat (limited to 'gui/widgets/editable.h')
-rw-r--r-- | gui/widgets/editable.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/widgets/editable.h b/gui/widgets/editable.h index 4a18d5e689..e3b3a2b014 100644 --- a/gui/widgets/editable.h +++ b/gui/widgets/editable.h @@ -17,6 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * */ #ifndef GUI_WIDGETS_EDITABLE_H @@ -78,6 +79,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); |