# ToggleButtonShapes

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/ToggleButton.kt+class:androidx.compose.material3.ToggleButtonShapes) Common/AllAndroid/JVM
- Cmn

  ```
  class ToggleButtonShapes
  ```

*** ** * ** ***

The shapes that will be used in toggle buttons. Toggle button will morph between these three shapes depending on the interaction of the toggle 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/ToggleButtonShapes#ToggleButtonShapes(androidx.compose.ui.graphics.Shape,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, checkedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape)` | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/ToggleButtonShapes` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/ToggleButtonShapes#copy(androidx.compose.ui.graphics.Shape,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?, checkedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape?)` Returns a copy of this `https://developer.android.com/reference/kotlin/androidx/compose/material3/ToggleButtonShapes` with optionally overridden shapes. | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/ToggleButtonShapes#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/ToggleButtonShapes#hashCode()()` | Cmn |

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

## Public constructors

### ToggleButtonShapes

Cmn

```
ToggleButtonShapes(shape: Shape, pressedShape: Shape, checkedShape: Shape)
```

## Public functions

### copy

Cmn

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

Returns a copy of this `https://developer.android.com/reference/kotlin/androidx/compose/material3/ToggleButtonShapes` with optionally overridden shapes.

Passing `null` for any shape parameter retains the current value from this instance.

| Parameters |
|---|---|
| `shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape? = this.shape` | unchecked shape, or null to keep the current unchecked shape |
| `pressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape? = this.pressedShape` | pressed shape, or null to keep the current pressed shape |
| `checkedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape? = this.checkedShape` | checked shape, or null to keep the current checked shape |

### equals

Cmn

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

### hashCode

Cmn

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

## Public properties

### checkedShape

Cmn

```
val checkedShape: Shape
```

the checked `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape`.

### pressedShape

Cmn

```
val pressedShape: Shape
```

the pressed `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape`.

### shape

Cmn

```
val shape: Shape
```

the unchecked `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape`.