Handbook
Glossary
prefer ( gadget -- )
Factor handbook
»
UI framework
»
Building user interfaces
»
Gadget hierarchy and layouts
»
Implementing layout gadgets
Prev:
pref-dims ( gadgets -- seq )
Next:
max-dims ( seq -- dim )
Vocabulary
ui
.
gadgets
Inputs
gadget
a
gadget
Outputs
None
Generic word contract
Resizes the gadget to assume its preferred dimensions.
Definition
USING:
accessors
kernel
;
IN:
ui.gadgets
:
prefer
( gadget -- )
dup
pref-dim
>>dim
drop
;