<div class='sourceset sourceset-android'>Android</div>

```kotlin
public interface Depth
```

An interface to calculate the position of a box of a certain depth inside an available depth.

## Functions

<h2 id="offset-depth-space">offset</h2>

```kotlin
public fun offset(depth: Int, space: Int): Int
```

Provides the depth offset from the origin of the space to the origin of the content.

#### Parameters

| | |
| --- | --- |
| depth | The content depth in pixels. |
| space | The available space in pixels. |