Google is committed to advancing racial equity for Black communities. See how.

PxBounds

@Immutable data class PxBounds
kotlin.Any
   ↳ androidx.compose.ui.unit.PxBounds

A four dimensional bounds using pixels for units

Summary

Public constructors
<init>(left: Float, top: Float, right: Float, bottom: Float)

A four dimensional bounds using pixels for units

Extension functions
From androidx.compose.ui.unit
Offset

Returns the Offset of the center of the PxBounds.

Rect

Convert a PxBounds to a Rect.

Size

Convert a PxBounds to a Size.

Properties
Float

Float

Float

Float

Extension properties
From androidx.compose.ui.unit
Float

A height of this PxBounds in pixels.

Float

A width of this PxBounds in pixels.

Public constructors

<init>

PxBounds(
    left: Float,
    top: Float,
    right: Float,
    bottom: Float)

A four dimensional bounds using pixels for units

Properties

bottom

val bottom: Float

left

val left: Float
val right: Float

top

val top: Float