Frame layouts
Factor handbook » UI framework » Building user interfaces » Gadget hierarchy and layouts

Prev:Grid layouts
Next:Book layouts

Frames extend Grid layouts with the ability to give all remaining space to a distinguished filled cell.

The filled cell's column/row pair is stored in the frame gadget's filled-cell slot. If the actual dimensions of a frame exceed it preferred dimensions, then the fill slot is resized appropriately, together with its row and column.

Because frames inherit from grids, grid layout words can be used to add and remove children.

Creating empty frames:
<frame> ( cols rows -- frame )