A layout container for vertically aligning other components.

Constructor

new (?parent:DisplayObjectContainer, ?xpos:Float, ?ypos:Float)

Constructor

Parameters:

parent

The parent DisplayObjectContainer on which to add this PushButton.

xpos

The x position to place this component.

ypos

The y position to place this component.

Variables

alignment:String

Gets / sets the horizontal alignment of components in the box.

spacing:Float

Gets / sets the spacing between each sub component.

Methods

addChild (child:DisplayObject):DisplayObject

Override of addChild to force layout;

addChildAt (child:DisplayObject, index:Int):DisplayObject

Override of addChildAt to force layout;

draw ():Void

Draws the visual ui of the component, in this case, laying out the sub components.

get_alignment ():String

get_spacing ():Float

removeChild (child:DisplayObject):DisplayObject

Override of removeChild to force layout;

removeChildAt (index:Int):DisplayObject

Override of removeChild to force layout;

set_alignment (value:String):String

set_spacing (s:Float):Float

Static variables

staticinline read onlyCENTER:String

staticinline read onlyLEFT:String

staticinline read onlyNONE:String

staticinline read onlyRIGHT:String

Inherited Variables

Defined by Component

enabled:Bool

Sets/gets whether this component is enabled or not.

tag:Int

Sets/gets in integer that can identify the component.

Inherited Methods

Defined by Component

get_enabled ():Bool

get_height ():Float

get_tag ():Int

get_width ():Float

move (xpos:Float, ypos:Float):Void

Moves the component to the specified position.

Parameters:

xpos

the x position to move the component

ypos

the y position to move the component

setSize (w:Float, h:Float):Void

Sets the size of the component.

Parameters:

w

The width of the component.

h

The height of the component.

set_enabled (value:Bool):Bool

set_height (value:Float):Void

Sets/gets the height of the component.

set_tag (value:Int):Int

set_width (value:Float):Void

Sets/gets the width of the component.

set_x (value:Float):Void

Overrides the setter for x to always place the component on a whole pixel.

set_y (value:Float):Void

Overrides the setter for y to always place the component on a whole pixel.