# AbsoluteRoundedCornerShape

# AbsoluteRoundedCornerShape

Artifact:[androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/shape/AbsoluteRoundedCornerShape.kt+class:androidx.compose.foundation.shape.AbsoluteRoundedCornerShape)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)
Common/All
  - Cmn  

  ```
  class AbsoluteRoundedCornerShape : CornerBasedShape
```  

|---|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                                                                |||
| ↳ | [androidx.compose.foundation.shape.CornerBasedShape](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape)                        ||
|   | ↳ | [androidx.compose.foundation.shape.AbsoluteRoundedCornerShape](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape) |

*** ** * ** ***

A shape describing the rectangle with rounded corners.

This shape will not automatically mirror the corner sizes in[LayoutDirection.Rtl](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection#Rtl), use[RoundedCornerShape](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/RoundedCornerShape)for the layout direction aware version of this shape.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                          ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                          |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [AbsoluteRoundedCornerShape](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape#AbsoluteRoundedCornerShape(androidx.compose.foundation.shape.CornerSize,androidx.compose.foundation.shape.CornerSize,androidx.compose.foundation.shape.CornerSize,androidx.compose.foundation.shape.CornerSize))`(` ` topLeft: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)`,` ` topRight: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)`,` ` bottomRight: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)`,` ` bottomLeft: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize) `)` | Cmn |

|                                                               ### Public functions                                                               |
|--------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `open `[AbsoluteRoundedCornerShape](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape) | [copy](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape#copy(androidx.compose.foundation.shape.CornerSize,androidx.compose.foundation.shape.CornerSize,androidx.compose.foundation.shape.CornerSize,androidx.compose.foundation.shape.CornerSize))`(` ` topStart: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)`,` ` topEnd: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)`,` ` bottomEnd: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)`,` ` bottomStart: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize) `)` Creates a copy of this Shape with a new corner sizes.                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn |
| `open `[Outline](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline)                                            | [createOutline](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape#createOutline(androidx.compose.ui.geometry.Size,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.unit.LayoutDirection))`(` ` size: `[Size](https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)`,` ` topStart: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`,` ` topEnd: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`,` ` bottomEnd: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`,` ` bottomStart: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`,` ` layoutDirection: `[LayoutDirection](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection) `)` Creates[Outline](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline)of this shape for the given[size](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape#createOutline(androidx.compose.ui.geometry.Size,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.unit.LayoutDirection)). | Cmn |
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                              | [equals](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Cmn |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                               | [hashCode](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape#hashCode())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Cmn |
| `open `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?`                                                            | [lerp](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape#lerp(kotlin.Any,kotlin.Float))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?, t: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Default implementation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Cmn |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                         | [toString](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape#toString())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Cmn |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.compose.foundation.shape.CornerBasedShape](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape) |-----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----| | [CornerBasedShape](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape) | [copy](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape#copy(androidx.compose.foundation.shape.CornerSize))`(all: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)`)` Creates a copy of this Shape with a new corner size.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Cmn | | `final `[Outline](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline)                | [createOutline](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape#createOutline(androidx.compose.ui.geometry.Size,androidx.compose.ui.unit.LayoutDirection,androidx.compose.ui.unit.Density))`(` ` size: `[Size](https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)`,` ` layoutDirection: `[LayoutDirection](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection)`,` ` density: `[Density](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density) `)` Creates[Outline](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline)of this shape for the given[size](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape#createOutline(androidx.compose.ui.geometry.Size,androidx.compose.ui.unit.LayoutDirection,androidx.compose.ui.unit.Density)). | Cmn | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ### Inherited properties                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.compose.foundation.shape.CornerBasedShape](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape) |-----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----| | [CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize) | [bottomEnd](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape#bottomEnd()) a size of the bottom end corner       | Cmn | | [CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize) | [bottomStart](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape#bottomStart()) a size of the bottom start corner | Cmn | | [CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize) | [topEnd](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape#topEnd()) a size of the top end corner                | Cmn | | [CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize) | [topStart](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape#topStart()) a size of the top start corner          | Cmn | |

## Public constructors

### AbsoluteRoundedCornerShape

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

```
AbsoluteRoundedCornerShape(
    topLeft: CornerSize,
    topRight: CornerSize,
    bottomRight: CornerSize,
    bottomLeft: CornerSize
)
```  

|                                                        Parameters                                                        |
|--------------------------------------------------------------------------------------------------------------------------|-----------------------------------|
| `topLeft: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)     | a size of the top left corner     |
| `topRight: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)    | a size of the top right corner    |
| `bottomRight: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize) | a size of the bottom right corner |
| `bottomLeft: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)  | a size of the bottom left corner  |

## Public functions

### copy

Cmn  

```
open fun copy(
    topStart: CornerSize,
    topEnd: CornerSize,
    bottomEnd: CornerSize,
    bottomStart: CornerSize
): AbsoluteRoundedCornerShape
```

Creates a copy of this Shape with a new corner sizes.  

|                                                        Parameters                                                        |
|--------------------------------------------------------------------------------------------------------------------------|-----------------------------------|
| `topStart: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)    | a size of the top start corner    |
| `topEnd: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)      | a size of the top end corner      |
| `bottomEnd: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize)   | a size of the bottom end corner   |
| `bottomStart: `[CornerSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerSize) | a size of the bottom start corner |

### createOutline

Cmn  

```
open fun createOutline(
    size: Size,
    topStart: Float,
    topEnd: Float,
    bottomEnd: Float,
    bottomStart: Float,
    layoutDirection: LayoutDirection
): Outline
```

Creates[Outline](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline)of this shape for the given[size](https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShape#createOutline(androidx.compose.ui.geometry.Size,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.unit.LayoutDirection)).  

|                                                          Parameters                                                           |
|-------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|
| `size: `[Size](https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)                              | the size of the shape boundary.               |
| `topStart: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                                   | the resolved size of the top start corner     |
| `topEnd: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                                     | the resolved size for the top end corner      |
| `bottomEnd: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                                  | the resolved size for the bottom end corner   |
| `bottomStart: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                                | the resolved size for the bottom start corner |
| `layoutDirection: `[LayoutDirection](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection) | the current layout direction.                 |

### equals

Cmn  

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

Cmn  

```
open fun hashCode(): Int
```  

### lerp

Cmn  

```
open fun lerp(other: Any?, t: Float): Any?
```

Default implementation. Returns null. Override this to get interpolatable benefits.  

### toString

Cmn  

```
open fun toString(): String
```