Handbook
Glossary
scroll-position ( scroller -- loc )
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
scroller
a
scroller
Outputs
loc
a 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.product
models.range
;
IN:
ui.gadgets.viewports
:
scroll-position
( scroller -- loc )
model>>
[
range-value
]
product-value
v>integer
;