Size

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

A two dimensional size using Dp for units

Summary

Public constructors

<init>(value: Long)

A two dimensional size using Dp for units

Public methods

operator Size
div(other: Int)

Scales the Size by dividing width and height by other

operator Size
div(other: Float)

Scales the Size by dividing width and height by other

operator Size
div(other: Double)

Scales the Size by dividing width and height by other

operator Size
times(other: Int)

Scales the Size by multiplying width and height by other

operator Size
times(other: Float)

Scales the Size by multiplying width and height by other

operator Size
times(other: Double)

Scales the Size by multiplying width and height by other

String

Extension functions

From androidx.ui.core
Position

Returns the Position of the center of the rect from the point of 0,0 with this Size.

Bounds

Convert a Size to a Bounds.

Properties

Dp

The vertical aspect of the size in Dp.

Dp

The horizontal aspect of the size in Dp.

Public constructors

<init>

Size(value: Long)

A two dimensional size using Dp for units

Public methods

div

inline operator fun div(other: Int): Size

Scales the Size by dividing width and height by other

div

inline operator fun div(other: Float): Size

Scales the Size by dividing width and height by other

div

inline operator fun div(other: Double): Size

Scales the Size by dividing width and height by other

times

inline operator fun times(other: Int): Size

Scales the Size by multiplying width and height by other

times

inline operator fun times(other: Float): Size

Scales the Size by multiplying width and height by other

times

inline operator fun times(other: Double): Size

Scales the Size by multiplying width and height by other

toString

fun toString(): String

Properties

height

val height: Dp

The vertical aspect of the size in Dp.

width

val width: Dp

The horizontal aspect of the size in Dp.