# Outline

Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Outline.kt+class:androidx.compose.ui.graphics.Outline) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  sealed class Outline
  ```
Known direct subclasses [Outline.Generic](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Generic), [Outline.Rectangle](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle), [Outline.Rounded](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Rounded)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Generic` | An area defined as a path. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle` | Rectangular area. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Rounded` | Rectangular area with rounded corners. |

*** ** * ** ***

Defines a simple shape, used for bounding graphical regions.

Can be used for defining a shape of the component background, a shape of shadows cast by the component, or to clip the contents.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Generic : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` An area defined as a path. |
| `class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` Rectangular area. |
| `class https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Rounded : https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` Rectangular area with rounded corners. |

| ### Protected constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline#Outline()()` | Cmn |

| ### Public properties |
|---|---|---|
| `abstract https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline#bounds()` Return the bounds of the outline | Cmn |

## Protected constructors

### Outline

Cmn

```
protected Outline()
```

## Public properties

### bounds

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
abstract val bounds: Rect
```

Return the bounds of the outline