Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIScissorRect Class Reference
Inheritance diagram for MOAIScissorRect:
MOAITransform MOAITransformBase MOAINode MOAIInstanceEventSource MOAIEventSource

List of all members.

Function List

  getRect
  setRect
  setScissorRect

Function Documentation

Return the extents of the scissor rect.


function getRect ( MOAIScissorRect self )
Parameters:
self ( MOAIScissorRect )
Returns:
xMin ( number ), yMin ( number ), xMax ( number ), yMax ( number )

Sets the extents of the scissor rect.


function setRect ( number x1, number y1, number x2, number y2 )
Parameters:
x1 ( number ) The X coordinate of the rect's upper-left point.
y1 ( number ) The Y coordinate of the rect's upper-left point.
x2 ( number ) The X coordinate of the rect's lower-right point.
y2 ( number ) The Y coordinate of the rect's lower-right point.
Returns:
nil

Set or clear the parent scissor rect.


function setScissorRect ( MOAIProp self [, MOAIScissorRect parent ] )
Parameters:
self ( MOAIProp )
parent ( MOAIScissorRect ) Optional. Default value is nil.
Returns:
nil