allow duplicate struct properties if the values are eq?; add position-locations to text%

svn: r10849

original commit: 5ff75bac42ac9303370d974eeb9f7870685200ba
This commit is contained in:
Matthew Flatt 2008-07-21 18:54:09 +00:00
parent 68da2db6ae
commit 33f517e62e

View File

@ -1611,7 +1611,7 @@ See @|ateoldiscuss| for a discussion of @scheme[at-eol?].
[whole-line? any/c #f])
void?]{
Returns the @techlink{location} of a given @techlink{position}.
Returns the @techlink{location} of a given @techlink{position}. See also @method[text% position-locations].
@boxisfillnull[(scheme x) @elem{the x-@techlink{location} of the @techlink{position} @scheme[start] in editor
coordinates} ]
@ -1634,6 +1634,22 @@ maximum bottom @techlink{location} for the whole line is returned in @scheme[y].
}
@defmethod[(position-locations [start nonnegative-exact-integer?]
[top-x (or/c (box/c real?) false/c) #f]
[top-y (or/c (box/c real?) false/c) #f]
[bottom-x (or/c (box/c real?) false/c) #f]
[bottom-y (or/c (box/c real?) false/c) #f]
[at-eol? any/c #f]
[whole-line? any/c #f])
void?]{
Like @method[text% position-location], but returns both the ``top''
and ``bottom'' results at once.
@|OVD| @|FCA|
}
@defmethod[(position-paragraph [start nonnegative-exact-integer?]
[at-eol? any/c #f])
nonnegative-exact-integer?]{