Android 12 Developer Preview is here! Try it out, and give us your feedback!

Rectangle

@Immutable class Rectangle : Outline
kotlin.Any
   ↳ androidx.compose.ui.graphics.Outline
   ↳ androidx.compose.ui.graphics.Outline.Rectangle

Rectangular area.

Summary

Public constructors
<init>(rect: Rect)

Rectangular area.

Public methods
Boolean
equals(other: Any?)

Int

Properties
Rect

Return the bounds of the outline

Rect

Public constructors

<init>

Rectangle(rect: Rect)

Rectangular area.

Public methods

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

Properties

bounds

val bounds: Rect

Return the bounds of the outline

rect

val rect: Rect