Handbook
Glossary
pref-dims ( gadgets -- seq )
Factor handbook
»
UI framework
»
Building user interfaces
»
Gadget hierarchy and layouts
»
Implementing layout gadgets
Prev:
pref-dim ( gadget -- dim )
Next:
prefer ( gadget -- )
Vocabulary
ui
.
gadgets
Inputs
gadgets
a sequence of gadgets
Outputs
seq
a sequence of pairs of integers
Word description
Collects the preferred dimensions of every gadget in the sequence into a new sequence.
See also
max-dims
,
sum-dims
Definition
USING:
sequences
;
IN:
ui.gadgets
:
pref-dims
( gadgets -- seq )
[
pref-dim
]
map
;
inline