Available since

1.0.0

.

Constructor

new (?top:Float, ?right:Float, ?bottom:Float, ?left:Float, ?horizontalCenter:Float, ?verticalCenter:Float)

Variables

@:value(null)bottom:Null<Float> = null

The position, in pixels, of the object's bottom edge relative to the bottom anchor, or, if there is no bottom anchor, then the position is relative to the bottom edge of the parent container. If this value is null, the object's bottom edge will not be anchored.

Available since

1.0.0

.

@:value(null)horizontalCenter:Null<Float> = null

The position, in pixels, of the object's horizontal center relative to the horizontal center anchor, or, if there is no horizontal center anchor, then the position is relative to the horizontal center of the parent container. If this value is null, the object's horizontal center will not be anchored.

Available since

1.0.0

.

@:value(null)left:Null<Float> = null

@:value(null)right:Null<Float> = null

The position, in pixels, of the object's right edge relative to the right anchor, or, if there is no right anchor, then the position is relative to the right edge of the parent container. If this value is null, the object's right edge will not be anchored.

Available since

1.0.0

.

@:value(null)top:Null<Float> = null

The position, in pixels, of the object's top edge relative to the top anchor, or, if there is no top anchor, then the position is relative to to the top edge of the parent container. If this value is null, the object's top edge will not be anchored.

Available since

1.0.0

.

@:value(null)verticalCenter:Null<Float> = null

The position, in pixels, of the object's vertical center relative to the vertical center anchor, or, if there is no vertical center anchor, then the position is relative to the vertical center of the parent container. If this value is null, the object's vertical center will not be anchored.

Available since

1.0.0

.

Static methods

@:value({ y : 0, x : 0 })staticcenter (x:Float = 0, y:Float = 0):AnchorLayoutData

Creates AnchorLayoutData that centers the object both horizontally and vertically.

Available since

1.0.0

.

See:

horizontalCenter

verticalCenter

@:value({ padding : 0 })staticfill (padding:Float = 0):AnchorLayoutData

Creates AnchorLayoutData that fills the parent container.

Available since

1.0.0

.

See:

top

right

bottom

left