diff options
author | dkf <dkf@noemail.net> | 2009-04-03 09:41:27 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2009-04-03 09:41:27 (GMT) |
commit | 48ca095ac4430fe53003d4fd29c11f9d0a41b54c (patch) | |
tree | 5d908df5bffe34bda94e3abe20e458ed9db93014 /doc/TextLayout.3 | |
parent | 957d00a88fdf4bdcb891187ce8e7c3b429dc26a9 (diff) | |
download | tk-48ca095ac4430fe53003d4fd29c11f9d0a41b54c.zip tk-48ca095ac4430fe53003d4fd29c11f9d0a41b54c.tar.gz tk-48ca095ac4430fe53003d4fd29c11f9d0a41b54c.tar.bz2 |
Fix [Bug 974421]
FossilOrigin-Name: bb0df7a6e3ed1ee049ffe1fa92f3fbd4f2e8b726
Diffstat (limited to 'doc/TextLayout.3')
-rw-r--r-- | doc/TextLayout.3 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/TextLayout.3 b/doc/TextLayout.3 index 3356737..e8e006d 100644 --- a/doc/TextLayout.3 +++ b/doc/TextLayout.3 @@ -4,7 +4,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: TextLayout.3,v 1.11 2008/06/30 22:57:02 dkf Exp $ +'\" RCS: @(#) $Id: TextLayout.3,v 1.12 2009/04/03 09:41:35 dkf Exp $ '\" .so man.macros .TH Tk_ComputeTextLayout 3 8.1 Tk "Tk Library Procedures" @@ -184,9 +184,11 @@ whose \fIx\fR-value is less than 0 will be considered closest to the first character on that line; any point whose \fIx\fR-value is greater than the width of the text layout will be considered closest to the last character on that line. The return value is the index of the character that was closest -to the point. Given a \fIlayout\fR with no characters, the value 0 will -always be returned, referring to a hypothetical zero-width placeholder -character. +to the point, or one more than the index of any character (to indicate that +the point was after the end of the string and that the corresponding caret +would be at the end of the string). Given a \fIlayout\fR with no characters, +the value 0 will always be returned, referring to a hypothetical zero-width +placeholder character. .PP \fBTk_CharBbox\fR uses the information in \fIlayout\fR to return the bounding box for the character specified by \fIindex\fR. The width of the |