DrawObjectEventHandler

DrawObjectEventHandler class

Interface to get DrawObject and Bound when rendering.

abstract class DrawObjectEventHandler;

Methods

MethodDescription
draw(DrawObject, number, number, number, number)Implements this interface to get DrawObject and Bound when rendering.

draw(DrawObject, number, number, number, number)

Implements this interface to get DrawObject and Bound when rendering.

draw(drawObject: DrawObject, x: number, y: number, width: number, height: number) : void;

Parameters:

ParameterTypeDescription
drawObjectDrawObjectDrawObject will be initialized and returned when rendering
xnumberLeft of DrawObject
ynumberTop of DrawObject
widthnumberWidth of DrawObject
heightnumberHeight of DrawObject