Skip to content
Benedict Allen edited this page Nov 15, 2015 · 3 revisions

ISize interface

Contains the width and height variable as well as setters to update the size of an object.

Note, this requires that the implementer has a canvas and children.

Variables

width

ISize.width - number

The width of the object.

height

ISize.height - number

The height of the object.

Methods

setWidth()

This method is chainable.

ISize:setWidth( number width )

Sets the width of the object and updates its canvas.

setHeight()

This method is chainable.

ISize:setHeight( number height )

Sets the height of the object and updates its canvas.

Clone this wiki locally