Pack layouts
Factor handbook > UI framework > Building user interfaces > Gadget hierarchy and layouts

Prev:Layout basics
Next:Track layouts


Pack gadgets layout their children along a single axis.
pack


Creating empty packs:
<pack> ( orientation -- pack )

<pile> ( -- pack )

<shelf> ( -- pack )


For more control, custom layouts can reuse portions of pack layout logic:
pack-pref-dim ( pack sizes -- dim )

pack-layout ( pack sizes -- )