scroll-to in editor-admin%
Called by the editor to request scrolling so that the given region is visible. The editor generally needs to be updated after a scroll, but the editor decides whether the update should occur immediately.
(-> booleansendan-editor-adminscroll-tolocalxlocalywhrefresh?bias)
localx: real number
localy: real number
w: non-negative real number
h: non-negative real number
refresh?=#t: boolean
bias=: symbol in'none'(start end none)The
localx,localy,w, andharguments specify a region of the editor to be made visible by the scroll (in editor coordinates).If
refresh?is not#f, then the editor is requesting to be updated immediately.The
biasargument is one of:'start-- if the range doesn't fit in the visible area, show the top-left region'none-- no special scrolling instructions'end-- if the range doesn't fit in the visible area, show the bottom-right region
The return value is
#tif the display is scrolled,#fif not (either because the requested region is already visible, because the display has zero size, or because the editor is currently printing.)