🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

PaddingValues

Describes a padding to be applied along the edges inside a box.

Source set: Common
public interface PaddingValues

Describes a padding to be applied along the edges inside a box. See the PaddingValues factories and Absolute for convenient ways to build PaddingValues.

Functions

calculateLeftPadding

Source set: Common
public fun calculateLeftPadding(layoutDirection: LayoutDirection): Dp

The padding to be applied along the left edge inside a box.

calculateTopPadding

Source set: Common
public fun calculateTopPadding(): Dp

The padding to be applied along the top edge inside a box.

calculateRightPadding

Source set: Common
public fun calculateRightPadding(layoutDirection: LayoutDirection): Dp

The padding to be applied along the right edge inside a box.

calculateBottomPadding

Source set: Common
public fun calculateBottomPadding(): Dp

The padding to be applied along the bottom edge inside a box.

Members

Absolute

Source set: Common
public class Absolute(
        @Stable private val left: Dp = 0.dp,
        @Stable private val top: Dp = 0.dp,
        @Stable private val right: Dp = 0.dp,
        @Stable private val bottom: Dp = 0.dp,
    ) : PaddingValues

Describes an absolute (RTL unaware) padding to be applied along the edges inside a box.

Functions

calculateLeftPadding

Source set: Common
override fun calculateLeftPadding(layoutDirection: LayoutDirection): Dp

calculateTopPadding

Source set: Common
override fun calculateTopPadding(): Dp

calculateRightPadding

Source set: Common
override fun calculateRightPadding(layoutDirection: LayoutDirection): Dp

calculateBottomPadding

Source set: Common
override fun calculateBottomPadding(): Dp

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String

Companion

Source set: Common
public companion object

Properties

Zero

Source set: Common
@Stable @get:Stable public val Zero: PaddingValues = Absolute()

PaddingValues with all values 0.dp.