diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-03-08 12:24:41 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-03-08 12:33:06 +0100 |
| commit | 1ffcef23738871f23c9b264ebf05d1e9531e9294 (patch) | |
| tree | 571df358a21eae4b912b0b15277ddccdc5184d2d /FL/Fl_Text_Display.H | |
| parent | 735d73bb59ce5e7b4c483b8e7e73679a5eef1749 (diff) | |
Update Fl_Text_Display documentation
No code changes except minor formatting and trailing whitespace.
Diffstat (limited to 'FL/Fl_Text_Display.H')
| -rw-r--r-- | FL/Fl_Text_Display.H | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H index c9b8cd321..6d077fbb7 100644 --- a/FL/Fl_Text_Display.H +++ b/FL/Fl_Text_Display.H @@ -3,7 +3,7 @@ // // Header file for Fl_Text_Display class. // -// Copyright 2001-2017 by Bill Spitzak and others. +// Copyright 2001-2020 by Bill Spitzak and others. // Original code Copyright Mark Edel. Permission to distribute under // the LGPL for the FLTK library granted by Mark Edel. // @@ -11,11 +11,11 @@ // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the license at: // -// http://www.fltk.org/COPYING.php +// https://www.fltk.org/COPYING.php // // Please report all bugs and problems on the following page: // -// http://www.fltk.org/str.php +// https://www.fltk.org/str.php // /* \file @@ -179,11 +179,18 @@ public: void insert(const char* text); void overstrike(const char* text); void insert_position(int newPos); - - /** - Gets the position of the text insertion cursor for text display. - \return insert position index into text buffer - */ + + /** + Gets the position of the text insertion cursor for text display. + + The insert position is the byte count (offset) from the beginning + of the text buffer (starting with 0). Returns 0 (zero) if no buffer + is associated to the text display. Returns buffer()->length() if the + insert position is at the end of the buffer. + + \returns insert position index into text buffer + \see insert_position(int) + */ int insert_position() const { return mCursorPos; } int position_to_xy(int pos, int* x, int* y) const; |
