diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-04-03 09:41:28 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-04-03 09:41:28 (GMT) |
commit | 89e0c6fe408ac383163f0cb7b176a45b898784ac (patch) | |
tree | 5d908df5bffe34bda94e3abe20e458ed9db93014 /doc/TextLayout.3 | |
parent | f2aec7d50500a8c5a76875c1b27ad19ae7235fdd (diff) | |
download | tk-89e0c6fe408ac383163f0cb7b176a45b898784ac.zip tk-89e0c6fe408ac383163f0cb7b176a45b898784ac.tar.gz tk-89e0c6fe408ac383163f0cb7b176a45b898784ac.tar.bz2 |
Fix [Bug 974421]
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 |