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

Defined by Box

Defined by Widget

getWidth ():Float

Returns:

the widget real width (in pixels), calculated from the width of the parent (or stage) and the relativeWidth

Defined by Sprite

startDrag (?lockCenter:Bool, ?bounds:Rectangle):Void

Defined by DisplayObjectContainer

Defined by InteractiveObject

Defined by DisplayObject

Defined by EventDispatcher