symmetric

fun symmetric(horizontal: Int, vertical: Int): Insets(source)

Creates equal horizontal and equal vertical distances.

Return

an inset value with the requested axis distances.

Parameters

horizontal

the non-negative distance on the left and right sides.

vertical

the non-negative distance on the top and bottom sides.

Throws

when either distance is negative.

when twice either distance cannot be represented as an Int.