# DpTouchBoundsExpansion

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

  ```
  data class DpTouchBoundsExpansion
  ```

*** ** * ** ***

Describes the expansion of a `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/PointerInputModifierNode`'s touch bounds along each edges using `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` for units. See `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion` factories and `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion#Absolute(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` for convenient ways to build `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/PointerInputModifierNode#touchBoundsExpansion()` |   |

## Summary

| ### Public companion functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion#Absolute(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)` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion` that's unaware of `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection`. | Cmn |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion#DpTouchBoundsExpansion(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,kotlin.Boolean)( start: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, top: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, end: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, bottom: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, isLayoutDirectionAware: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion#roundToTouchBoundsExpansion(androidx.compose.ui.unit.Density)(density: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density)` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion#bottom()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion#end()` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion#isLayoutDirectionAware()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion#start()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion#top()` | Cmn |

## Public companion functions

### Absolute

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

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

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DpTouchBoundsExpansion` that's unaware of `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection`. The `left`, `top`, `right` and `bottom` represent the distance that the touch bounds is expanded along the corresponding edge.

## Public constructors

### DpTouchBoundsExpansion

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

```
DpTouchBoundsExpansion(
    start: Dp,
    top: Dp,
    end: Dp,
    bottom: Dp,
    isLayoutDirectionAware: Boolean
)
```

## Public functions

### roundToTouchBoundsExpansion

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

```
fun roundToTouchBoundsExpansion(density: Density): TouchBoundsExpansion
```

## Public properties

### bottom

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

```
val bottom: Dp
```

### end

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

```
val end: Dp
```

### isLayoutDirectionAware

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

```
val isLayoutDirectionAware: Boolean
```

### start

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

```
val start: Dp
```

### top

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

```
val top: Dp
```