IntOffset

@Immutable
value class IntOffset

A two-dimensional position using Int cells for units

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@Stable
val x: Int

The horizontal aspect of the position in Int cells.

Link copied to clipboard
@Stable
val y: Int

The vertical aspect of the position in Int cells.

Functions

Link copied to clipboard
@Stable
operator fun component1(): Int
Link copied to clipboard
@Stable
operator fun component2(): Int
Link copied to clipboard
fun copy(x: Int = this.x, y: Int = this.y): IntOffset

Returns a copy of this IntOffset instance optionally overriding the x or y parameter

Link copied to clipboard
@Stable
operator fun div(operand: Float): IntOffset

Division operator.

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

Subtract a IntOffset from another one.

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

Add a IntOffset to another one.

Link copied to clipboard
@Stable
operator fun rem(operand: Int): IntOffset

Modulo (remainder) operator.

Link copied to clipboard
@Stable
operator fun times(operand: Float): IntOffset

Multiplication operator.

Link copied to clipboard
@Stable
open override fun toString(): String
Link copied to clipboard
@Stable
inline operator fun unaryMinus(): IntOffset

Returns a new IntOffset representing the negation of this point.