# ButtonShapes

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/Button.kt+class:androidx.compose.material3.ButtonShapes) Common/AllAndroid/JVM
- Cmn

  ```
  class ButtonShapes
  ```

*** ** * ** ***

The shapes that will be used in buttons. Button will morph between these shapes depending on the interaction of the button, assuming all of the shapes are `https://developer.android.com/reference/kotlin/androidx/compose/foundation/shape/CornerBasedShape`s.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/ButtonShapes#ButtonShapes(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape)(shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, pressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape)` | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/ButtonShapes` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/ButtonShapes#copy(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape)(shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape?, pressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape?)` Returns a copy of this ButtonShapes, optionally overriding some of the values. | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/ButtonShapes#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/ButtonShapes#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/ButtonShapes#pressedShape()` is the pressed shape. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/ButtonShapes#shape()` is the active shape. | Cmn |

## Public constructors

### ButtonShapes

Cmn

```
ButtonShapes(shape: Shape, pressedShape: Shape)
```

## Public functions

### copy

Cmn

```
fun copy(shape: Shape? = this.shape, pressedShape: Shape? = this.pressedShape): ButtonShapes
```

Returns a copy of this ButtonShapes, optionally overriding some of the values.

### equals

Cmn

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

### hashCode

Cmn

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

## Public properties

### pressedShape

Cmn

```
val pressedShape: Shape
```

is the pressed shape.

### shape

Cmn

```
val shape: Shape
```

is the active shape.