of

open fun of(left: Int, top: Int, right: Int, bottom: Int): Insets(source)

Return an Insets instance with the appropriate values.

Return

Insets instance with the appropriate values

Parameters

left

the left inset

top

the top inset

right

the right inset

bottom

the bottom inset


open fun of(@NonNull r: Rect): Insets(source)

Return an Insets instance with the appropriate values.

Return

an Insets instance with the appropriate values

Parameters

r

the rectangle from which to take the values