Position

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

A two-dimensional position using Dp for units

Summary

Public constructors

<init>(value: 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.core
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(value: Long)

A two-dimensional position using Dp for units

Public methods

minus

inline operator fun minus(other: Position): Position

Subtract a Position from another one.

plus

inline operator fun plus(other: Position): Position

Add a Position to another one.

toString

fun toString(): String

Properties

x

val x: Dp

The horizontal aspect of the position in Dp

y

val y: Dp

The vertical aspect of the position in Dp