get-snip-location in editor<%>
Gets the location of the given snip. If the snip is found in
the editor, #t is returned; otherwise, #f is returned.
The result is only valid when the editor is displayed (see
Basic Organization).
For text% objects, calling this method may force the recalculation of location
information if a maximum width is set for the editor, even if the editor currently has delayed refreshing (see
refresh-delayed?).
( -> boolean
send an-editor get-snip-location thesnip x y bottom-right?)
thesnip : snip% object
x = : boxed real number or #f#f
y = : boxed real number or #f#f
bottom-right? = : boolean#f
The x box is filled with the x-coordinate of the snip's location, unless
x is #f.
The y box is filled with the y-coordinate of the snip's location, unless
y is #f.
If bottom-right? is not #f, the values in the
x and y boxes are for the snip's bottom right
corner instead of its top-left corner.
Obtaining the location if the bottom-right corner may trigger delayed size calculations (including snips other than the one whose location was requested).