Handbook
Glossary
scroll>top ( gadget -- )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Scroller gadgets
Prev:
scroll>bottom ( gadget -- )
Next:
scroll>rect ( rect gadget -- )
Vocabulary
ui
.
gadgets
.
scrollers
Inputs
gadget
a
gadget
Outputs
None
Word description
Ensures that any scroller containing
gadget
is scrolled all the way up. If no parent of
scroller
is a gadget, does nothing.
See also
scroll-position
,
set-scroll-position
,
scroll>bottom
,
scroll>rect
Definition
USING:
kernel
math.rectangles
;
IN:
ui.gadgets.scrollers
:
scroll>top
( gadget -- )
<zero-rect>
swap
scroll>rect
;