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

Next:<grid> ( children -- grid )


Vocabulary
ui.gadgets.grids

Class description
A grid gadget lays out its children so that all gadgets in a column have equal width and all gadgets in a row have equal height.

The gap slot stores a pair of integers, the horizontal and vertical gap between children, respectively.

The fill? slot stores a boolean, indicating if grid cells should assume their preferred size, or if they should fill the dimensions of the cell. The default is t.

Grids are created by calling <grid> and children are managed with grid-add and grid-remove.

The add-gadget, unparent and clear-gadget words should not be used to manage child gadgets of grids.

See also
frame

Definition


Methods