inset

infix fun inset(inset: Double): Rectangle

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


infix fun inset(inset: Insets): Rectangle

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