Package | feathers.layout |
Class | public class BaseLinearLayout |
Inheritance | BaseLinearLayout BaseVariableVirtualLayout starling.events.EventDispatcher |
Subclasses | HorizontalLayout, VerticalLayout |
Product Version : | Feathers 3.3.0 |
HorizontalLayout
and VerticalLayout
.
See also
Property | Defined By | ||
---|---|---|---|
afterVirtualizedItemCount : int | BaseLinearLayout | ||
beforeVirtualizedItemCount : int | BaseLinearLayout | ||
firstGap : Number
The space, in pixels, between the first and second items. | BaseLinearLayout | ||
gap : Number
The space, in pixels, between items. | BaseLinearLayout | ||
hasVariableItemDimensions : Boolean
When the layout is virtualized, and this value is true, the items
may have variable dimensions. | BaseVariableVirtualLayout | ||
horizontalAlign : String
The alignment of the items horizontally, on the x-axis. | BaseLinearLayout | ||
lastGap : Number
The space, in pixels, between the last and second to last items. | BaseLinearLayout | ||
padding : Number
Quickly sets all padding properties to the same value. | BaseLinearLayout | ||
paddingBottom : Number
The space, in pixels, that appears on the bottom. | BaseLinearLayout | ||
paddingLeft : Number
The minimum space, in pixels, to the left of the items. | BaseLinearLayout | ||
paddingRight : Number
The minimum space, in pixels, to the right of the items. | BaseLinearLayout | ||
paddingTop : Number
The space, in pixels, that appears on top. | BaseLinearLayout | ||
requiresLayoutOnScroll : Boolean [read-only]
Determines if the container calls layout() when the
scroll position changes. | BaseVariableVirtualLayout | ||
resetTypicalItemDimensionsOnMeasure : Boolean
If set to true, the width and height of the
typicalItem will be reset to typicalItemWidth
and typicalItemHeight, respectively, whenever the
typical item needs to be measured. | BaseLinearLayout | ||
typicalItem : DisplayObject
Used internally by a component that supports layout virtualization,
such as List, to provide a display object with
dimensions that represent a "typical" item in the layout. | BaseVariableVirtualLayout | ||
typicalItemHeight : Number
Used to reset the height, in pixels, of the typicalItem
for measurement. | BaseLinearLayout | ||
typicalItemWidth : Number
Used to reset the width, in pixels, of the typicalItem
for measurement. | BaseLinearLayout | ||
useVirtualLayout : Boolean
Determines if virtual layout should be used. | BaseVariableVirtualLayout | ||
verticalAlign : String
The alignment of the items vertically, on the x-axis. | BaseLinearLayout |
Method | Defined By | ||
---|---|---|---|
Constructor. | BaseLinearLayout | ||
addToVariableVirtualCacheAtIndex(index:int, item:DisplayObject = null):void
Inserts an item in to the cache at the specified index, pushing the
old cached value at that index, and all following values, up one
index. | BaseVariableVirtualLayout | ||
removeFromVariableVirtualCacheAtIndex(index:int):void
Removes an item in to the cache at the specified index, moving the
values at following indexes down by one. | BaseVariableVirtualLayout | ||
resetVariableVirtualCache():void
Clears the cached dimensions for all virtualized indices. | BaseVariableVirtualLayout | ||
resetVariableVirtualCacheAtIndex(index:int, item:DisplayObject = null):void
Clears the cached dimensions for one specific virtualized index. | BaseVariableVirtualLayout |
afterVirtualizedItemCount | property |
afterVirtualizedItemCount:int
public function get afterVirtualizedItemCount():int
public function set afterVirtualizedItemCount(value:int):void
beforeVirtualizedItemCount | property |
beforeVirtualizedItemCount:int
public function get beforeVirtualizedItemCount():int
public function set beforeVirtualizedItemCount(value:int):void
firstGap | property |
firstGap:Number
The space, in pixels, between the first and second items. If the
value of firstGap
is NaN
, the value of the
gap
property will be used instead.
The default value is NaN
.
public function get firstGap():Number
public function set firstGap(value:Number):void
gap | property |
gap:Number
The space, in pixels, between items.
The default value is 0
.
public function get gap():Number
public function set gap(value:Number):void
horizontalAlign | property |
horizontalAlign:String
The alignment of the items horizontally, on the x-axis.
Note: The HorizontalAlign.JUSTIFY
constant is not supported by HorizontalLayout
. It may be
used with VerticalLayout
only.
The default value is feathers.layout.HorizontalAlign.LEFT
.
public function get horizontalAlign():String
public function set horizontalAlign(value:String):void
See also
lastGap | property |
lastGap:Number
The space, in pixels, between the last and second to last items. If
the value of lastGap
is NaN
, the value of
the gap
property will be used instead.
The default value is NaN
.
public function get lastGap():Number
public function set lastGap(value:Number):void
padding | property |
padding:Number
Quickly sets all padding properties to the same value. The
padding
getter always returns the value of
paddingTop
, but the other padding values may be
different.
The default value is 0
.
public function get padding():Number
public function set padding(value:Number):void
See also
paddingBottom | property |
paddingBottom:Number
The space, in pixels, that appears on the bottom.
The default value is 0
.
public function get paddingBottom():Number
public function set paddingBottom(value:Number):void
paddingLeft | property |
paddingLeft:Number
The minimum space, in pixels, to the left of the items.
The default value is 0
.
public function get paddingLeft():Number
public function set paddingLeft(value:Number):void
paddingRight | property |
paddingRight:Number
The minimum space, in pixels, to the right of the items.
The default value is 0
.
public function get paddingRight():Number
public function set paddingRight(value:Number):void
paddingTop | property |
paddingTop:Number
The space, in pixels, that appears on top.
The default value is 0
.
public function get paddingTop():Number
public function set paddingTop(value:Number):void
resetTypicalItemDimensionsOnMeasure | property |
resetTypicalItemDimensionsOnMeasure:Boolean
If set to true
, the width and height of the
typicalItem
will be reset to typicalItemWidth
and typicalItemHeight
, respectively, whenever the
typical item needs to be measured. The measured dimensions of the
typical item are used to fill in the blanks of a virtualized layout
for virtual items that don't have their own display objects to
measure yet.
The default value is false
.
public function get resetTypicalItemDimensionsOnMeasure():Boolean
public function set resetTypicalItemDimensionsOnMeasure(value:Boolean):void
See also
typicalItemHeight | property |
typicalItemHeight:Number
Used to reset the height, in pixels, of the typicalItem
for measurement. The measured dimensions of the typical item are used
to fill in the blanks of a virtualized layout for virtual items that
don't have their own display objects to measure yet.
This value is only used when resetTypicalItemDimensionsOnMeasure
is set to true
. If resetTypicalItemDimensionsOnMeasure
is set to false
, this value will be ignored and the
typicalItem
dimensions will not be reset before
measurement.
If typicalItemHeight
is set to NaN
, the
typical item will auto-size itself to its preferred height. If you
pass a valid Number
value, the typical item's height will
be set to a fixed size. May be used in combination with
typicalItemWidth
.
The default value is NaN
.
public function get typicalItemHeight():Number
public function set typicalItemHeight(value:Number):void
See also
typicalItemWidth | property |
typicalItemWidth:Number
Used to reset the width, in pixels, of the typicalItem
for measurement. The measured dimensions of the typical item are used
to fill in the blanks of a virtualized layout for virtual items that
don't have their own display objects to measure yet.
This value is only used when resetTypicalItemDimensionsOnMeasure
is set to true
. If resetTypicalItemDimensionsOnMeasure
is set to false
, this value will be ignored and the
typicalItem
dimensions will not be reset before
measurement.
If typicalItemWidth
is set to NaN
, the
typical item will auto-size itself to its preferred width. If you
pass a valid Number
value, the typical item's width will
be set to a fixed size. May be used in combination with
typicalItemHeight
.
The default value is NaN
.
public function get typicalItemWidth():Number
public function set typicalItemWidth(value:Number):void
See also
verticalAlign | property |
verticalAlign:String
The alignment of the items vertically, on the x-axis.
Note: The VerticalAlign.JUSTIFY
constant is not supported by VerticalLayout
. It may be
used with HorizontalLayout
only.
The default value is feathers.layout.VerticalAlign.TOP
.
public function get verticalAlign():String
public function set verticalAlign(value:String):void
See also
BaseLinearLayout | () | Constructor |
public function BaseLinearLayout()
Constructor.