PxSize

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

A two dimensional size using Px for units

Summary

Public methods

operator PxSize
div(other: Int)

Returns a PxSize scaled by dividing width and height by other

operator PxSize
div(other: Float)

Returns a PxSize scaled by dividing width and height by other

operator PxSize
div(other: Double)

Returns a PxSize scaled by dividing width and height by other

operator PxSize
times(other: Int)

Returns a PxSize scaled by multiplying width and height by other

operator PxSize
times(other: Float)

Returns a PxSize scaled by multiplying width and height by other

operator PxSize
times(other: Double)

Returns a PxSize scaled by multiplying width and height by other

String

Extension functions

From androidx.ui.core
PxPosition

Returns the PxPosition of the center of the rect from the point of 0,0 with this PxSize.

PxBounds

Convert a PxSize to a PxBounds.

Rect

Convert a PxSize to a Rect.

Properties

Px

The vertical aspect of the size in Px.

Px

The horizontal aspect of the size in Px.

Companion properties

PxSize

PxSize with zero values.

Extension properties

From androidx.ui.core
Px

Returns the smallest dimension size.

Public methods

div

inline operator fun div(other: Int): PxSize

Returns a PxSize scaled by dividing width and height by other

div

inline operator fun div(other: Float): PxSize

Returns a PxSize scaled by dividing width and height by other

div

inline operator fun div(other: Double): PxSize

Returns a PxSize scaled by dividing width and height by other

times

inline operator fun times(other: Int): PxSize

Returns a PxSize scaled by multiplying width and height by other

times

inline operator fun times(other: Float): PxSize

Returns a PxSize scaled by multiplying width and height by other

times

inline operator fun times(other: Double): PxSize

Returns a PxSize scaled by multiplying width and height by other

toString

fun toString(): String

Properties

height

inline val height: Px

The vertical aspect of the size in Px.

width

inline val width: Px

The horizontal aspect of the size in Px.

Companion properties

Zero

val Zero: PxSize

PxSize with zero values.