<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
value class IntSize @PublishedApi internal constructor(val packedValue: Long)
```


A two-dimensional size class used for measuring in `Int` pixels.

To create an `IntSize`, call the top-level function that accepts a width/height pair of
dimensions:
```
val size = IntSize(width, height)
```

The primary constructor of `IntSize` is intended to be used with the `packedValue` property to
allow storing sizes in arrays or collections of primitives without boxing.

#### Parameters

| | |
| --- | --- |
| packedValue | `Long` value encoding the `width` and `height` components of the `IntSize`. Encoded values can be obtained by using the `packedValue` property of existing `IntSize` instances. |



## Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline val width: Int
```


The horizontal aspect of the size in `Int` pixels.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline val height: Int
```


The vertical aspect of the size in `Int` pixels.



## Functions



<h2 id="component1">component1</h2>

```kotlin
inline operator fun component1(): Int
```



<hr class="docs-overload-divider">


<h2 id="component2">component2</h2>

```kotlin
inline operator fun component2(): Int
```



<hr class="docs-overload-divider">


<h2 id="times-other">times</h2>

```kotlin
operator fun times(other: Int): IntSize
```


Returns an IntSize scaled by multiplying `width` and `height` by `other`




<hr class="docs-overload-divider">


<h2 id="div-other">div</h2>

```kotlin
operator fun div(other: Int): IntSize
```


Returns an IntSize scaled by dividing `width` and `height` by `other`


## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Zero = IntSize(0L)
```


IntSize with a zero (0) width and height.