Google is committed to advancing racial equity for Black communities. See how.

IntSize

@Immutable class IntSize
kotlin.Any
   ↳ androidx.ui.unit.IntSize

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

Summary

Public constructors
<init>(packedValue: Long)

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

Public methods
operator Int

operator Int

operator IntSize
div(other: Int)

Returns an IntSize scaled by dividing width and height by other

Boolean
equals(other: Any?)

Int

operator IntSize
times(other: Int)

Returns an IntSize scaled by multiplying width and height by other

String

Extension functions
From androidx.ui.unit
IntBounds

Convert an IntSize to an IntBounds.

Size

Properties
Int

The vertical aspect of the size in Int pixels.

Int

The horizontal aspect of the size in Int pixels.

Companion properties
IntSize

IntSize with a zero (0) width and height.

Extension properties
From androidx.ui.unit
IntOffset

Returns the IntOffset of the center of the rect from the point of 0,0 with this IntSize.

Public constructors

<init>

IntSize(packedValue: Long)

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

Public methods

component1

@Stable inline operator fun component1(): Int

component2

@Stable inline operator fun component2(): Int

div

@Stable operator fun div(other: Int): IntSize

Returns an IntSize scaled by dividing width and height by other

equals

fun equals(other: Any?): Boolean

hashCode

@Stable fun hashCode(): Int

times

@Stable operator fun times(other: Int): IntSize

Returns an IntSize scaled by multiplying width and height by other

toString

@Stable fun toString(): String

Properties

height

@Stable val height: Int

The vertical aspect of the size in Int pixels.

width

@Stable val width: Int

The horizontal aspect of the size in Int pixels.

Companion properties

Zero

val Zero: IntSize

IntSize with a zero (0) width and height.