# IntVolumeSize

Artifact: [androidx.xr.compose:compose](https://developer.android.com/jetpack/androidx/releases/xr-compose) [View Source](https://cs.android.com/search?q=file:androidx/xr/compose/unit/IntVolumeSize.kt+class:androidx.xr.compose.unit.IntVolumeSize) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)


```
class IntVolumeSize
```

<br />

*** ** * ** ***

Represents the size of a volume in pixels.

This class provides a convenient way to store and manipulate the `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize#width()`, `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize#height()`, and `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize#depth()` of a 3D volume in pixels. It also provides methods to convert to and from `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` in meters.

Note: As with all `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` values in Compose XR, the values in this class represent pixels.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize#Zero()` An `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize` with all dimensions set to 0. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize#IntVolumeSize(kotlin.Int,kotlin.Int,kotlin.Int)(width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, depth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

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

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize#depth()` the size of the volume along the z dimension, in pixels. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize#height()` the size of the volume along the y dimension, in pixels. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize#width()` the size of the volume along the x dimension, in pixels. |

## Public companion properties

### Zero

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val Zero: IntVolumeSize
```

An `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize` with all dimensions set to 0.

## Public constructors

### IntVolumeSize

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
IntVolumeSize(width: Int, height: Int, depth: Int)
```

## Public functions

### equals

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

### hashCode

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

### toString

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

## Public properties

### depth

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val depth: Int
```

the size of the volume along the z dimension, in pixels. Panels have 0 depth and cannot be set to non-zero depth.

### height

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val height: Int
```

the size of the volume along the y dimension, in pixels.

### width

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val width: Int
```

the size of the volume along the x dimension, in pixels.