Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# Outline.Rectangle\n=================\n\nArtifact: [androidx.compose.ui:ui-graphics](/jetpack/androidx/releases/compose-ui) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Outline.kt+class:androidx.compose.ui.graphics.Outline.Rectangle) \nAdded in [1.0.0](/jetpack/androidx/releases/compose-ui#1.0.0)\nCommon/AllAndroid/JVM\n - Cmn \n\n ```\n class Outline.Rectangle : Outline\n``` \n\n|---|---|--------------------------------------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||\n| ↳ | [androidx.compose.ui.graphics.Outline](/reference/kotlin/androidx/compose/ui/graphics/Outline) ||\n| | ↳ | [androidx.compose.ui.graphics.Outline.Rectangle](/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle) |\n\n*** ** * ** ***\n\nRectangular area.\n\nSummary\n-------\n\n| ### Public constructors |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| [Rectangle](/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle#Rectangle(androidx.compose.ui.geometry.Rect))`(rect: `[Rect](/reference/kotlin/androidx/compose/ui/geometry/Rect)`)` | Cmn |\n\n| ### Public functions |\n|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` | Cmn |\n| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [hashCode](/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle#hashCode())`()` | Cmn |\n\n| ### Public properties |\n|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|-----|\n| `open `[Rect](/reference/kotlin/androidx/compose/ui/geometry/Rect) | [bounds](/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle#bounds()) Return the bounds of the outline | Cmn |\n| [Rect](/reference/kotlin/androidx/compose/ui/geometry/Rect) | [rect](/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle#rect()) | Cmn |\n\nPublic constructors\n-------------------\n\n### Rectangle\n\nCmn \nAdded in [1.0.0](/jetpack/androidx/releases/compose-ui#1.0.0) \n\n```\nRectangle(rect: Rect)\n```\n\nPublic functions\n----------------\n\n### equals\n\nCmn \n\n```\nopen operator fun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\nCmn \n\n```\nopen fun hashCode(): Int\n```\n\nPublic properties\n-----------------\n\n### bounds\n\nCmn \n\n```\nopen val bounds: Rect\n```\n\nReturn the bounds of the outline \n\n### rect\n\nCmn \nAdded in [1.0.0](/jetpack/androidx/releases/compose-ui#1.0.0) \n\n```\nval rect: Rect\n```"]]