scaffold.libs_as.feathers.layout.ITrimmedVirtualLayout.as Maven / Gradle / Ivy
/*
Feathers
Copyright 2012-2015 Bowler Hat LLC. All Rights Reserved.
This program is free software. You can redistribute and/or modify it in
accordance with the terms of the accompanying license agreement.
*/
package feathers.layout
{
/**
* Optimizes a virtual layout by skipping a specific number of items before
* and after the set that is passed to layout()
.
*/
public interface ITrimmedVirtualLayout extends IVirtualLayout
{
/**
* Used internally by a component, such as List
, to set the
* number of virtualized items that appear before the items passed to
* layout()
. Allows the array of items to be smaller than
* the full size. Does not work if the layout has variable item
* dimensions.
*
* This property is meant to be set by the List
or other
* component that uses the virtual layout. If you're simply creating
* a layout for a List
or another component, do not use
* this property. It is meant for developers creating custom components
* only.
*/
function get beforeVirtualizedItemCount():int;
/**
* @private
*/
function set beforeVirtualizedItemCount(value:int):void;
/**
* Used internally by a component, such as List
, to set the
* number of virtualized items that appear after the items passed to
* layout()
. Allows the array of items to be smaller than
* the full size. Does not work if the layout has variable item
* dimensions.
*
* This property is meant to be set by the List
or other
* component that uses the virtual layout. If you're simply creating
* a layout for a List
or another component, do not use
* this property. It is meant for developers creating custom components
* only.
*/
function get afterVirtualizedItemCount():int;
/**
* @private
*/
function set afterVirtualizedItemCount(value:int):void;
}
}