Skip to content

MarginValues

data class MarginValues(
    val left: Int = 0, 
    val right: Int = 0, 
    val top: Int = 0, 
    val bottom: Int = 0
)

Holds the four-sided margin values used by MarginModifier.

Constructors

MarginValues

constructor(
    left: Int = 0, 
    right: Int = 0, 
    top: Int = 0, 
    bottom: Int = 0
)

Properties

bottom

val bottom: Int

left

val left: Int
val right: Int

top

val top: Int

Functions

getOffset

Returns the top-left corner offset (left, top) as an IntCoordinates.

plus

operator fun plus(other: MarginValues): MarginValues