Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIStretchPatch2D Class Reference
Inheritance diagram for MOAIStretchPatch2D:
MOAIDeck

List of all members.

Function List

  reserveColumns
  reserveRows
  reserveUVRects
  setColumn
  setRect
  setRow
  setUVRect

Function Documentation

Reserve total columns in patch.


function reserveColumns ( MOAIStretchPatch2D self, number nColumns )
Parameters:
self ( MOAIStretchPatch2D )
nColumns ( number )
Returns:
nil

Reserve total rows in patch.


function reserveRows ( MOAIStretchPatch2D self, number nRows )
Parameters:
self ( MOAIStretchPatch2D )
nRows ( number )
Returns:
nil

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


function reserveUVRects ( MOAIStretchPatch2D self, number nUVRects )
Parameters:
self ( MOAIStretchPatch2D )
nUVRects ( number )
Returns:
nil

Set the stretch properties of a patch column.


function setColumn ( MOAIStretchPatch2D self, number idx, number weight, boolean conStretch )
Parameters:
self ( MOAIStretchPatch2D )
idx ( number )
weight ( number )
conStretch ( boolean )
Returns:
nil

Set the model space dimensions of the patch.


function setRect ( MOAIStretchPatch2D self, number xMin, number yMin, number xMax, number yMax )
Parameters:
self ( MOAIStretchPatch2D )
xMin ( number )
yMin ( number )
xMax ( number )
yMax ( number )
Returns:
nil

Set the stretch properties of a patch row.


function setRow ( MOAIStretchPatch2D self, number idx, number weight, boolean conStretch )
Parameters:
self ( MOAIStretchPatch2D )
idx ( number )
weight ( number )
conStretch ( boolean )
Returns:
nil

Set the UV space dimensions of the patch.


function setUVRect ( MOAIStretchPatch2D self, number idx, number xMin, number yMin, number xMax, number yMax )
Parameters:
self ( MOAIStretchPatch2D )
idx ( number )
xMin ( number )
yMin ( number )
xMax ( number )
yMax ( number )
Returns:
nil