Frame

data class Frame(val left: Float, val top: Float, val right: Float, val bottom: Float)(source)

An axis-aligned rectangle in one coordinate space, such as pixels in a window.

Adapters in the compose and device artifacts build frames from Compose bounds and accessibility nodes. A frame is usable by FrameGeometry and ReadingOrder only when every edge is finite and it has a positive width and height.

Constructors

Link copied to clipboard
constructor(left: Float, top: Float, right: Float, bottom: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The maximum y coordinate.

Link copied to clipboard

The horizontal center.

Link copied to clipboard

The vertical center.

Link copied to clipboard

The vertical size, bottom - top.

Link copied to clipboard
val left: Float

The minimum x coordinate.

Link copied to clipboard

The maximum x coordinate.

Link copied to clipboard
val top: Float

The minimum y coordinate.

Link copied to clipboard

The horizontal size, right - left.