Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

IntOffset

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

A two-dimensional position using Int pixels for units

Summary

Public constructors
<init>(value: Long)

A two-dimensional position using Int pixels for units

Public methods
operator Int

operator Int

Boolean
equals(other: Any?)

Int

operator IntOffset
minus(other: IntOffset)

Subtract a IntOffset from another one.

operator IntOffset
plus(other: IntOffset)

Add a IntOffset to another one.

String

operator IntOffset

Returns a new IntOffset representing the negation of this point.

Extension functions
From androidx.ui.unit
operator Offset

operator Offset

Offset

Converts the IntOffset to an Offset.

Properties
Int

The horizontal aspect of the position in Int pixels.

Int

The vertical aspect of the position in Int pixels.

Companion properties
IntOffset

Public constructors

<init>

IntOffset(value: Long)

A two-dimensional position using Int pixels for units

Public methods

component1

@Stable inline operator fun component1(): Int

component2

@Stable inline operator fun component2(): Int

equals

@Stable fun equals(other: Any?): Boolean

hashCode

@Stable fun hashCode(): Int

minus

@Stable inline operator fun minus(other: IntOffset): IntOffset

Subtract a IntOffset from another one.

plus

@Stable inline operator fun plus(other: IntOffset): IntOffset

Add a IntOffset to another one.

toString

@Stable fun toString(): String

unaryMinus

@Stable inline operator fun unaryMinus(): IntOffset

Returns a new IntOffset representing the negation of this point.

Properties

x

@Stable val x: Int

The horizontal aspect of the position in Int pixels.

y

@Stable val y: Int

The vertical aspect of the position in Int pixels.

Companion properties

Origin

val Origin: IntOffset