Moai SDK  2.0
MOAIGridPropBase Class Reference
+ Inheritance diagram for MOAIGridPropBase:

Function List

getGrid
 
setGrid
 
setGridScale
 
- Function List inherited from MOAIDeckPropBase
getDeck
 
setDeck
 
- Function List inherited from MOAINode
clearAttrLink
 
clearNodeLink
 
forceUpdate
 
getAttr
 
getAttrLink
 
getNodeState
 
moveAttr
 
scheduleUpdate
 
seekAttr
 
setAttrLink
 
setAttr
 
setNodeLink
 
- Function List inherited from MOAIInstanceEventSource
getListener
 
setListener
 

Detailed Description

Attributes
MOAIGridPropBase.ATTR_INDEX
MOAIGridPropBase.ATTR_PARTITION

Function Documentation

getGrid

Get the grid currently connected to the prop.


function getGrid ( MOAIGridPropBase self )

Parameters
MOAIGridPropBaseself
Returns
MOAIGrid grid
setGrid

Sets or clears the prop's grid indexer. The grid indexer (if any) will override the standard indexer.


function setGrid ( MOAIGridPropBase self [, MOAIGrid grid ] )

Parameters
MOAIGridPropBaseself
MOAIGridgrid Optional. Default value is nil.
Returns
nil
setGridScale

Scale applied to deck items before rendering to grid cell.


function setGridScale ( MOAIGridPropBase self [, number xScale, number yScale ] )

Parameters
MOAIGridPropBaseself
numberxScale Optional. Default value is 1.
numberyScale Optional. Default value is 1.
Returns
nil