scroll-position ( scroller -- loc )
Factor documentation > Factor handbook > UI framework > Building user interfaces > Pre-made UI gadgets > Scroller gadgets
Prev:<scroller> ( gadget -- scroller )
Next:set-scroll-position ( value scroller -- )


Vocabulary
ui.gadgets.viewports

Inputs and outputs
scrollera scroller
loca pair of integers


Word description
Outputs the offset of the top-left corner of the scroller's viewport's child.

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

Definition
USING: accessors math.vectors models ;

IN: ui.gadgets.viewports

: scroll-position ( scroller -- loc )
model>> range-value v>integer ;