# PaneMargins

Artifact: [androidx.compose.material3.adaptive:adaptive-layout](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/adaptive/layout/PaneMargins.kt+class:androidx.compose.material3.adaptive.layout.PaneMargins) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.3.0) Common/All
- Cmn

  ```
  @ExperimentalMaterial3AdaptiveApi
  sealed interface PaneMargins
  ```

*** ** * ** ***

Represents the margins of a pane within a pane scaffold.

Note that the margins are specified as offsets from the edges of the scaffold. To specify the internal spacer size please do it via `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneScaffoldDirective#horizontalPartitionSpacerSize()` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneScaffoldDirective#verticalPartitionSpacerSize()`.

This is typically set by the `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/package-summary#(androidx.compose.ui.Modifier).paneMargins(androidx.compose.foundation.layout.PaddingValues,kotlin.collections.List)` modifier.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/package-summary#(androidx.compose.ui.Modifier).paneMargins(androidx.compose.foundation.layout.PaddingValues,kotlin.collections.List)` |   |

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMargins` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMargins#Unspecified()` Represents no margins being set. | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/Placeable.PlacementScope.https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMargins#(androidx.compose.ui.layout.Placeable.PlacementScope).getPaneBottom(kotlin.Int,kotlin.Int)( measuredBottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, parentBottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/Placeable.PlacementScope.https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMargins#(androidx.compose.ui.layout.Placeable.PlacementScope).getPaneLeft(kotlin.Int)(measuredLeft: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/Placeable.PlacementScope.https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMargins#(androidx.compose.ui.layout.Placeable.PlacementScope).getPaneRight(kotlin.Int,kotlin.Int)( measuredRight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, parentRight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/Placeable.PlacementScope.https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMargins#(androidx.compose.ui.layout.Placeable.PlacementScope).getPaneTop(kotlin.Int)(measuredTop: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | Cmn |

## Public companion properties

### Unspecified

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

```
val Unspecified: PaneMargins
```

Represents no margins being set.

When set to `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneMargins#Unspecified()`, the pane's position will not be affected by margins. The edges of the pane may touch the edges of the scaffold.

## Public functions

### Placeable.PlacementScope.getPaneBottom

Cmn Artifact: [androidx.compose.material3.adaptive:adaptive-layout](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/adaptive/layout/PaneMargins.kt+function:getPaneBottom) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.3.0)

```
open fun Placeable.PlacementScope.getPaneBottom(
    measuredBottom: Int,
    parentBottom: Int
): Int
```

### Placeable.PlacementScope.getPaneLeft

Cmn Artifact: [androidx.compose.material3.adaptive:adaptive-layout](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/adaptive/layout/PaneMargins.kt+function:getPaneLeft) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.3.0)

```
open fun Placeable.PlacementScope.getPaneLeft(measuredLeft: Int): Int
```

### Placeable.PlacementScope.getPaneRight

Cmn Artifact: [androidx.compose.material3.adaptive:adaptive-layout](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/adaptive/layout/PaneMargins.kt+function:getPaneRight) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.3.0)

```
open fun Placeable.PlacementScope.getPaneRight(
    measuredRight: Int,
    parentRight: Int
): Int
```

### Placeable.PlacementScope.getPaneTop

Cmn Artifact: [androidx.compose.material3.adaptive:adaptive-layout](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/adaptive/layout/PaneMargins.kt+function:getPaneTop) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.3.0)

```
open fun Placeable.PlacementScope.getPaneTop(measuredTop: Int): Int
```