scroll>rect ( rect gadget -- )
Factor handbook > UI framework > Building user interfaces > Pre-made UI gadgets > Scroller gadgets

Prev:scroll>top ( gadget -- )
Next:find-scroller ( gadget -- scroller/f )


Vocabulary
ui.gadgets.scrollers

Inputs and outputs
recta rect
gadgeta gadget


Word description
Ensures that a rectangular region relative to the top-left corner of gadget becomes visible in a scroller containing gadget. Does nothing if no parent of gadget is a scroller.

See also
scroll-position, set-scroll-position, scroll>bottom, scroll>top

Definition