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). As a special case, however, a pasteboard% object
always reports valid answers when bottom-right? is #f.
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?).
(-> booleansendan-editorget-snip-locationthesnipxybottom-right?)
thesnip:snip%object
x=#f: boxed real number or#f
y=#f: boxed real number or#f
bottom-right?=#f: booleanThe
xbox is filled with the x-coordinate of the snip's location, unlessxis#f. Theybox is filled with the y-coordinate of the snip's location, unlessyis#f.If
bottom-right?is not#f, the values in thexandyboxes 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).