Skip to content

PaddingValues

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

Holds the four-sided padding values used by PaddingModifier.

Constructors

PaddingValues

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: PaddingValues): PaddingValues