Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

androidx.compose.ui.geometry

Classes

CornerRadius

A radius for either circular or elliptical (oval) shapes.

MutableRect

An mutable, 2D, axis-aligned, floating-point rectangle whose coordinates are relative to a given origin.

Offset

An immutable 2D floating-point offset.

Rect

An immutable, 2D, axis-aligned, floating-point rectangle whose coordinates are relative to a given origin.

RoundRect

An immutable rounded rectangle with custom radii for all four corners.

Size

Holds a 2D floating-point size.

Top-level functions summary

CornerRadius
CornerRadius(x: Float, y: Float = x)

Constructs a Radius with the given x and y parameters for the size of the radius along the x and y axis respectively.

Offset
Offset(x: Float, y: Float)

Constructs an Offset from the given relative x and y offsets

Rect
Rect(offset: Offset, size: Size)

Construct a rectangle from its left and top edges as well as its width and height.

Rect
Rect(topLeft: Offset, bottomRight: Offset)

Construct the smallest rectangle that encloses the given offsets, treating them as vectors from the origin.

Rect
Rect(center: Offset, radius: Float)

Construct a rectangle that bounds the given circle

RoundRect
RoundRect(left: Float, top: Float, right: Float, bottom: Float, radiusX: Float, radiusY: Float)

Construct a rounded rectangle from its left, top, right, and bottom edges, and the same radii along its horizontal axis and its vertical axis.

RoundRect
RoundRect(left: Float, top: Float, right: Float, bottom: Float, cornerRadius: CornerRadius)

Construct a rounded rectangle from its left, top, right, and bottom edges, and the same radius in each corner.

RoundRect
RoundRect(rect: Rect, radiusX: Float, radiusY: Float)

Construct a rounded rectangle from its bounding box and the same radii along its horizontal axis and its vertical axis.

RoundRect
RoundRect(rect: Rect, cornerRadius: CornerRadius)

Construct a rounded rectangle from its bounding box and a radius that is the same in each corner.

RoundRect
RoundRect(rect: Rect, topLeft: CornerRadius = CornerRadius.Zero, topRight: CornerRadius = CornerRadius.Zero, bottomRight: CornerRadius = CornerRadius.Zero, bottomLeft: CornerRadius = CornerRadius.Zero)

Construct a rounded rectangle from its bounding box and topLeft, topRight, bottomRight, and bottomLeft radii.

Size
Size(width: Float, height: Float)

Constructs a Size from the given width and height

CornerRadius
lerp(start: CornerRadius, stop: CornerRadius, fraction: Float)

Linearly interpolate between two radii.

Offset
lerp(start: Offset, stop: Offset,