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 bottomDp

left

val leftDp

right

val rightDp

top

val topDp

Extension properties

height

val DpRect.heightDp

A height of this Bounds in Dp.

size

val DpRect.sizeDpSize

Returns the size of the DpRect.

width

val DpRect.widthDp

A width of this Bounds in Dp.