Handbook
Glossary
<pack> ( orientation -- pack )
Factor handbook
»
UI framework
»
Building user interfaces
»
Gadget hierarchy and layouts
»
Pack layouts
Prev:
pack
Next:
<pile> ( -- pack )
Vocabulary
ui
.
gadgets
.
packs
Inputs
orientation
an orientation specifier
Outputs
pack
a new
pack
Word description
Creates a new pack which lays out children with the given orientation, either
horizontal
or
vertical
.
See also
<pile>
,
<shelf>
Definition
USING:
accessors
kernel
;
IN:
ui.gadgets.packs
:
<pack>
( orientation -- pack )
pack
new
swap
>>orientation
;