grid box (for widgets vertical alignement)

 Widget 1  Widget 2  Widget 3 
 Widget 4  Widget 5  Widget 6 

Constructor

new (?relativeWidth:Float, columns:Array<HBoxColumn>)

Parameters:

relativeWidth

the widget relative width; defaults to 1

columns

the columns relative widths and alignements; defaults to null
[new HBoxColumn(0.2, -1), new HBoxColumn(0.4, -1), ...] for example

Throws:

String

if relativeWidth not in [0..1]

Methods

pack (widget:Widget):Box

adds a widget to display in the grid

Parameters:

widget,

the widget to add / display

Throws:

String

if widget is null

Returns:

the box instance

Inherited Variables

Inherited Methods