IntOffset

data class IntOffset(val x: Int, val y: Int)(source)

An immutable integer coordinate or displacement.

Constructors

Link copied to clipboard
constructor(x: Int, y: Int)

Types

Link copied to clipboard
object Companion

Common offset constants.

Properties

Link copied to clipboard
val x: Int

the horizontal coordinate.

Link copied to clipboard
val y: Int

the vertical coordinate.

Functions

Link copied to clipboard
operator fun minus(other: IntOffset): IntOffset

Subtracts two offsets and fails when either coordinate would overflow.

Link copied to clipboard
operator fun plus(other: IntOffset): IntOffset

Adds two offsets and fails when either coordinate would overflow.