offsetTo

fun offsetTo(newLeft: Int, newTop: Int)

Offset the rectangle to a specific (left, top) position, keeping its width and height the same.

Parameters

newLeft

The new "left" coordinate for the rectangle

newTop

The new "top" coordinate for the rectangle