inset

Return

a Circle with the same attributes as this, but with the radius shortened by inset.

Parameters

inset

to shorten radius by


fun Ellipse.inset(insetX: Double, insetY: Double = insetX): Ellipse(source)

Return

an Ellipse with the same attributes as this, but with xRadius and yRadius shortened by insetX and insetY respectively.

Parameters

insetX

to shorten xRadius by

insetY

to shorten yRadius by


infix fun Rectangle.inset(inset: Double): Rectangle(source)

Rectangle that has been adjusted as follows [x + i, y + i, w - 2i, h - 2i], where i is the inset

Return

adjusted Rectangle

Parameters

inset

amount to resize by


fun Rectangle.inset(top: Double = 0.0, left: Double = 0.0, right: Double = 0.0, bottom: Double = 0.0): Rectangle(source)

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


infix fun Rectangle.inset(inset: Insets): Rectangle(source)

Rectangle that has been adjusted as follows [x + left, y + top, w - (left + right), h - (top + bottom)], where the adjustments are from the inset

Return

adjusted Rectangle

Parameters

inset

amount to resize by