This module is only available from the UI process Lua state.
The box widget allows stacking widgets horizontally or vertically.
Add a widget to the box. There are several valid options that can be set in an options table:
from: whether to add child to the start or the end of the box. Can be
expand: whether the new child should be assigned any extra space; such space is divided among all children with
true, the child will expand to fill any extra space assigned to it; otherwise, the child will be centered within the extra space.
padding: Extra space to put between the new child and its neighbors or the ends of the box widget, in pixels.
childType: widgetThe widget to add as a new child.
optionsType: table or nilTable of options.
Rearrange a widget already in the box.
childType: widgetThe child widget to reorder.
positionType: integerThe position to move the widget to.
Whether the child widgets should all have the same size.
The amount of space between each of the child widgets. Must be non-negative.
Type: string or nil
The background color of the box widget.
- 2010 Mason Larobina