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

Function List

reserveColumns
 
reserveRows
 
reserveUVRects
 
setColumn
 
setRect
 
setRow
 
setUVRect
 

Additional Inherited Members

- Function List inherited from MOAIDeck
getBounds
 

Function Documentation

reserveColumns

Reserve total columns in patch.


function reserveColumns ( MOAIStretchPatch2D self, number nColumns )

Parameters
MOAIStretchPatch2Dself
numbernColumns
Returns
nil
reserveRows

Reserve total rows in patch.


function reserveRows ( MOAIStretchPatch2D self, number nRows )

Parameters
MOAIStretchPatch2Dself
numbernRows
Returns
nil
reserveUVRects

Reserve total UV rects in patch. When a patch is indexed it will change its UV rects.


function reserveUVRects ( MOAIStretchPatch2D self, number nUVRects )

Parameters
MOAIStretchPatch2Dself
numbernUVRects
Returns
nil
setColumn

Set the stretch properties of a patch column.


function setColumn ( MOAIStretchPatch2D self, number idx, number percent, boolean canStretch )

Parameters
MOAIStretchPatch2Dself
numberidx
numberpercent
booleancanStretch
Returns
nil
setRect

Set the model space dimensions of the patch.


function setRect ( MOAIStretchPatch2D self, number xMin, number yMin, number xMax, number yMax )

Parameters
MOAIStretchPatch2Dself
numberxMin
numberyMin
numberxMax
numberyMax
Returns
nil
setRow

Set the stretch properties of a patch row.


function setRow ( MOAIStretchPatch2D self, number idx, number percent, boolean canStretch )

Parameters
MOAIStretchPatch2Dself
numberidx
numberpercent
booleancanStretch
Returns
nil
setUVRect

Set the UV space dimensions of the patch.


function setUVRect ( MOAIStretchPatch2D self, number idx, number xMin, number yMin, number xMax, number yMax )

Parameters
MOAIStretchPatch2Dself
numberidx
numberxMin
numberyMin
numberxMax
numberyMax
Returns
nil