inset
Return
a Circle with the same attributes as this, but with the radius shortened by inset.
Parameters
inset
to shorten radius by
Return
an Ellipse with the same attributes as this, but with xRadius and yRadius shortened by insetX and insetY respectively.
Parameters
fun Rectangle.inset(top: Double = 0.0, left: Double = 0.0, right: Double = 0.0, bottom: Double = 0.0): Rectangle
Rectangle that has been adjusted as follows [x + left, y + top, w - (left + right), h - (top + bottom)]
.
Return
adjusted Rectangle
Parameters
top
amount to adjust on the top
left
amount to adjust on the left
right
amount to adjust on the right
bottom
amount to adjust on the bottom