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

Position

@Immutable inline class Position
kotlin.Any
   ↳ androidx.ui.unit.Position

A two-dimensional position using Dp for units

Summary

Public constructors
<init>(packedValue: Long)

A two-dimensional position using Dp for units

Public methods
operator Position
minus(other: Position)

Subtract a Position from another one.

operator Position
plus(other: Position)

Add a Position to another one.

String

Extension functions
From androidx.ui.unit
Dp

The magnitude of the offset represented by this Position.

Properties
Dp

The horizontal aspect of the position in Dp

Dp

The vertical aspect of the position in Dp

Public constructors

<init>

Position(packedValue: Long)

A two-dimensional position using Dp for units

Public methods

minus

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

Subtract a Position from another one.

plus

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

Add a Position to another one.

toString

@Stable fun toString(): String

Properties

x

@Stable val x: Dp

The horizontal aspect of the position in Dp

y

@Stable val y: Dp

The vertical aspect of the position in Dp