# LayerOutsets

Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/LayerOutsets.kt+class:androidx.compose.ui.graphics.LayerOutsets) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.12.0) Common/AllAndroid/JVM
- Cmn

  ```
  class LayerOutsets
  ```

*** ** * ** ***

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.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets#Zero()` A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets` with all sides set to zero. | Cmn |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets#LayerOutsets(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)(left: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, top: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, right: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottom: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets#bottom()` The outset on the bottom side. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets#left()` The outset on the left side. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets#right()` The outset on the right side. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets#top()` The outset on the top side. | Cmn |

## Public companion properties

### Zero

Cmn Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.12.0)

```
val Zero: LayerOutsets
```

A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets` with all sides set to zero.

## Public constructors

### LayerOutsets

Cmn Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.12.0)

```
LayerOutsets(left: Dp = 0.dp, top: Dp = 0.dp, right: Dp = 0.dp, bottom: Dp = 0.dp)
```

| Parameters |
|---|---|
| `left: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = 0.dp` | The outset on the left side. |
| `top: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = 0.dp` | The outset on the top side. |
| `right: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = 0.dp` | The outset on the right side. |
| `bottom: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = 0.dp` | The outset on the bottom side. |

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### bottom

Cmn

```
val bottom: Dp
```

The outset on the bottom side.

### left

Cmn

```
val left: Dp
```

The outset on the left side.

### right

Cmn

```
val right: Dp
```

The outset on the right side.

### top

Cmn

```
val top: Dp
```

The outset on the top side.