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

List of all members.

Function List

  setDrawCallback
  setRect
  setRectCallback
  setTotalRectCallback

Function Documentation

Sets the callback to be issued when draw events occur. The callback's parameters are ( number index, number xOff, number yOff, number xScale, number yScale ).


function setDrawCallback ( MOAIScriptDeck self, function callback )
Parameters:
self ( MOAIScriptDeck )
callback ( function )
Returns:
nil

Set the model space dimensions of the deck's default rect.


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

Sets the callback to be issued when the size of a deck item needs to be determined. The callback's parameters are ( number index ).


function setRectCallback ( MOAIScriptDeck self, function callback )
Parameters:
self ( MOAIScriptDeck )
callback ( function )
Returns:
nil

Sets the callback to be issued when the size of a deck item needs to be determined. The callback's parameters are ( ).


function setTotalRectCallback ( MOAIScriptDeck self, function callback )
Parameters:
self ( MOAIScriptDeck )
callback ( function )
Returns:
nil