Module flower.DrawableObject
Class for drawing using the MOAIDraw.
Extends:
Info:
- Release: V3.0.0
- Author: Makoto
Functions
DrawableObject:init (width, height) | Constructor. |
DrawableObject:onDraw (index, xOff, yOff, xFlip, yFlip) | This is the function called when drawing. |
DrawableObject:setSize (width, height) | Sets the size. |
Functions
- DrawableObject:init (width, height)
-
Constructor.
Parameters:
- width Width
- height Height
- DrawableObject:onDraw (index, xOff, yOff, xFlip, yFlip)
-
This is the function called when drawing.
Parameters:
- index index of DrawCallback.
- xOff xOff of DrawCallback.
- yOff yOff of DrawCallback.
- xFlip xFlip of DrawCallback.
- yFlip yFlip of the Prop.
- DrawableObject:setSize (width, height)
-
Sets the size.
Parameters:
- width Width
- height Height