Positions items from left to right in a single row, and all items are resized to have the same width and height.

Available since

1.0.0

.

See also:

Constructor

new()

Creates a new HorizontalDistributedLayout object.

Available since

1.0.0

.

Variables

@:flash.propertygap:Float

The space, in pixels, between each two adjacent items in the layout.

In the following example, the layout's gap is set to 20 pixels:

layout.gap = 20.0;
Available since

1.0.0

.

@:flash.propertymaxItemWidth:Float

The maximum width of an item in the layout.

In the following example, the layout's maximum item width is set to 20 pixels:

layout.maxItemWidth = 20.0;
Available since

1.0.0

.

@:flash.propertyminItemWidth:Float

The minimum width of an item in the layout.

In the following example, the layout's minimum item width is set to 20 pixels:

layout.minItemWidth = 20.0;
Available since

1.0.0

.

@:flash.propertypaddingBottom:Float

The space, in pixels, between the parent container's bottom edge and its content.

In the following example, the layout's bottom padding is set to 20 pixels:

layout.paddingBottom = 20.0;
Available since

1.0.0

.

@:flash.propertypaddingLeft:Float

The space, in pixels, between the parent container's left edge and its content.

In the following example, the layout's left padding is set to 20 pixels:

layout.paddingLeft = 20.0;
Available since

1.0.0

.

@:flash.propertypaddingRight:Float

The space, in pixels, between the parent container's right edge and its content.

In the following example, the layout's right padding is set to 20 pixels:

layout.paddingRight = 20.0;
Available since

1.0.0

.

@:flash.propertypaddingTop:Float

The space, in pixels, between the parent container's top edge and its content.

In the following example, the layout's top padding is set to 20 pixels:

layout.paddingTop = 20.0;
Available since

1.0.0

.

Methods

layout(items:Array<DisplayObject>, measurements:Measurements, ?result:LayoutBoundsResult):LayoutBoundsResult