View source
interface ILayout
package feathers.layout
extends IEventDispatcher
extended by AnchorLayout, CalendarGridLayout, FlowRowsLayout, FormLayout, GridViewRowLayout, HDividedBoxLayout, HorizontalDistributedLayout, HorizontalLayout, IDragDropLayout, IKeyboardNavigationLayout, IScrollLayout, ISnapLayout, ResponsiveGridLayout, TiledRowsLayout, VDividedBoxLayout, VerticalDistributedLayout, VerticalLayout
Positions and sizes children in a container.
Events:
openfl.events.Event.CHANGE | Dispatched when a property of the layout changes, which triggers the container to invalidate. |
---|
Available since
1.0.0
.Methods
layout(items:Array<DisplayObject>, measurements:Measurements, ?result:LayoutBoundsResult):LayoutBoundsResult
Positions and sizes an array of display objects based on their parent container's measurements. Returns new measurements, if the parent does not have explicit measurements.
Available since
1.0.0
.