View source
interface IDragDropLayout
package feathers.layout
extends ILayout
extended by HorizontalDistributedLayout, HorizontalLayout, HorizontalListLayout, TiledRowsLayout, TiledRowsListLayout, VerticalDistributedLayout, VerticalLayout, VerticalListFixedRowLayout, VerticalListLayout
A layout that provides support for drag and drop.
Available since
1.3.0
.See also:
Methods
getDragDropIndex(items:Array<DisplayObject>, x:Float, y:Float, width:Float, height:Float):Int
Returns the index of the item in the layout where a new item can be
dropped, based on the x
and y
coordinates.
Available since
1.3.0
.getDragDropRegion(items:Array<DisplayObject>, dropIndex:Int, x:Float, y:Float, width:Float, height:Float, ?result:Rectangle):Rectangle
Returns the region representing the specified index in the layout where
a drop indicator may be positioned. The result will include the x
and
y
positions, and one of either the width
or the height
. The other
of the rectangle's dimensions will be equal to 0.0
because the result
represents a line.
Available since
1.3.0
.