# PaddingValues.Absolute

# PaddingValues.Absolute

Artifact:[androidx.compose.foundation:foundation-layout](https://developer.android.com/jetpack/androidx/releases/compose-foundation)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/layout/Padding.kt+class:androidx.compose.foundation.layout.PaddingValues.Absolute)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  class PaddingValues.Absolute : PaddingValues
  ```

*** ** * ** ***

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

## Summary

|                                                                                                                                                                                                                                                                                                  ### Public constructors                                                                                                                                                                                                                                                                                                   |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Absolute](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues.Absolute#Absolute(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp))`(left: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)`, top: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)`, right: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)`, bottom: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)`)` | Cmn |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `open `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)             | [calculateBottomPadding](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues.Absolute#calculateBottomPadding())`()` The padding to be applied along the bottom edge inside a box.                                                                                                                                                                   | Cmn |
| `open `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)             | [calculateLeftPadding](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues.Absolute#calculateLeftPadding(androidx.compose.ui.unit.LayoutDirection))`(layoutDirection: `[LayoutDirection](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection)`)` The padding to be applied along the left edge inside a box.    | Cmn |
| `open `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)             | [calculateRightPadding](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues.Absolute#calculateRightPadding(androidx.compose.ui.unit.LayoutDirection))`(layoutDirection: `[LayoutDirection](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection)`)` The padding to be applied along the right edge inside a box. | Cmn |
| `open `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)             | [calculateTopPadding](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues.Absolute#calculateTopPadding())`()` The padding to be applied along the top edge inside a box.                                                                                                                                                                            | Cmn |
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues.Absolute#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                                                                                                                  | Cmn |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues.Absolute#hashCode())`()`                                                                                                                                                                                                                                                             | Cmn |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues.Absolute#toString())`()`                                                                                                                                                                                                                                                             | Cmn |

## Public constructors

### Absolute

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

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

## Public functions

### calculateBottomPadding

Cmn  

```
open fun calculateBottomPadding(): Dp
```

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

### calculateLeftPadding

Cmn  

```
open fun calculateLeftPadding(layoutDirection: LayoutDirection): Dp
```

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

### calculateRightPadding

Cmn  

```
open fun calculateRightPadding(layoutDirection: LayoutDirection): Dp
```

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

### calculateTopPadding

Cmn  

```
open fun calculateTopPadding(): Dp
```

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

### equals

Cmn  

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

### hashCode

Cmn  

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

### toString

Cmn  

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