Handbook
Glossary
nth-gadget ( n gadget -- child )
Factor handbook
»
UI framework
»
Building user interfaces
»
Gadget hierarchy and layouts
»
Layout basics
Prev:
gadget-child ( gadget -- child )
Next:
each-child ( ... gadget quot: ( ... child -- ... ) -- ... )
Vocabulary
ui
.
gadgets
Inputs
n
a non-negative integer
gadget
a
gadget
Outputs
child
a
gadget
Word description
Outputs the
n
th child of the gadget.
Errors
Throws an error if
n
is negative or greater than or equal to the number of children.
Definition
USING:
accessors
sequences
;
IN:
ui.gadgets
:
nth-gadget
( n gadget -- child )
children>>
nth
;
inline