IntPxPosition

@Immutable data class IntPxPosition
kotlin.Any
   ↳ androidx.ui.core.IntPxPosition

A two-dimensional position using IntPx for units

Summary

Public methods

operator IntPxPosition

Subtract a IntPxPosition from another one.

operator IntPxPosition

Add a IntPxPosition to another one.

String

operator IntPxPosition

Returns a new PxPosition representing the negation of this point.

Extension functions

From androidx.ui.core
PxPosition

Convert a IntPxPosition to a PxPosition

Properties

IntPx

The horizontal aspect of the position in IntPx

IntPx

The vertical aspect of the position in IntPx

Companion properties

IntPxPosition

Public methods

minus

inline operator fun minus(other: IntPxPosition): IntPxPosition

Subtract a IntPxPosition from another one.

plus

inline operator fun plus(other: IntPxPosition): IntPxPosition

Add a IntPxPosition to another one.

toString

fun toString(): String

unaryMinus

inline operator fun unaryMinus(): IntPxPosition

Returns a new PxPosition representing the negation of this point.

Properties

x

inline val x: IntPx

The horizontal aspect of the position in IntPx

y

inline val y: IntPx

The vertical aspect of the position in IntPx

Companion properties

Origin

val Origin: IntPxPosition