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

LayerOutsets

Represents the outsets of a layer, which define the extra visual space around the layer's content.

Source set: Common
public class LayerOutsets(
    public val left: Dp = 0.dp,
    public val top: Dp = 0.dp,
    public val right: Dp = 0.dp,
    public val bottom: Dp = 0.dp,
)

Represents the outsets of a layer, which define the extra visual space around the layer's content. These outsets can be used to expand the layer's bounds beyond its measured content size.

This does not affect the clip or shadows itself and only increases the visual bounds of the layer.

All outset values must be non-negative.

Parameters

left The outset on the left side.
top The outset on the top side.
right The outset on the right side.
bottom The outset on the bottom side.

Functions

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

Members

Companion

Source set: Common
public companion object

Properties

Zero

Source set: Common
public val Zero: LayerOutsets = LayerOutsets()

A LayerOutsets with all sides set to zero.