DpRect


A four dimensional bounds using Dp for units

Summary

Public constructors

DpRect(origin: DpOffset, size: DpSize)

Constructs a DpRect from the top-left origin and the width and height in size.

Cmn
DpRect(left: Dp, top: Dp, right: Dp, bottom: Dp)
Cmn

Public properties

Dp
Cmn
Dp
Cmn
Dp
Cmn
Dp
Cmn

Extension properties

Dp

A height of this Bounds in Dp.

Cmn
DpSize

Returns the size of the DpRect.

Cmn
Dp

A width of this Bounds in Dp.

Cmn

Public constructors

DpRect

DpRect(origin: DpOffset, size: DpSize)

Constructs a DpRect from the top-left origin and the width and height in size.

DpRect

DpRect(left: Dp, top: Dp, right: Dp, bottom: Dp)

Public properties

bottom

val bottom: Dp

left

val left: Dp

right

val right: Dp

top

val top: Dp

Extension properties

DpRect.height

val DpRect.height: Dp

A height of this Bounds in Dp.

DpRect.size

val DpRect.size: DpSize

Returns the size of the DpRect.

DpRect.width

val DpRect.width: Dp

A width of this Bounds in Dp.