size

fun size(newWidth: Float, newHeight: Float)

Set the control to a new size.

Parameters

newWidth

the new width of the bounding rectangle

newHeight

the new height of the bounding rectangle