The overlay widget allows independent layers of widgets.
Add a widget to the overlay; it will be stacked on top of the main child widget. Multiple overlaying widgets can be added; their order affects the order in which they will be rendered, if they overlap.
The options table has two keys that can be set:
are five possible values for these keys:
fill: expand the new child widget to fill the total available area.
start: align the new child widget to the left/top.
end: align the new child widget to the right/bottom.
center: align the new child widget to the center.
baseline: align according to the child widget's baseline. Only works for
childType: widgetThe widget to add as a new child.
optionsType: table or nilTable of options.
Reorder a widget already in the overlay. The order affects draw order and focus order.
childType: widgetThe child widget to reorder.
positionType: integerThe position to move the widget to.
- 2010 Mason Larobina