# TextToggleButtonShapes

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/TextToggleButton.kt+class:androidx.wear.compose.material3.TextToggleButtonShapes) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
class TextToggleButtonShapes
```

<br />

*** ** * ** ***

Represents the shapes used for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButton.composable#TextToggleButton(kotlin.Boolean,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material3.TextToggleButtonColors,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.wear.compose.material3.TextToggleButtonShapes,androidx.compose.foundation.BorderStroke,kotlin.Function1)` in various states.

`https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes` offers flexibility in shape-morphing the TextToggleButton according to the checked and pressed states. See `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonDefaults#shapes()` (which maintains a fixed shape for all states), `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonDefaults#animatedShapes()` (which applies a shape-morph when pressed) and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonDefaults#variantAnimatedShapes()` (which applies different shapes for checked/unchecked and an additional morph to the current shape when pressed).

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes#TextToggleButtonShapes(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape)( uncheckedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, checkedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, uncheckedPressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, checkedPressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape )` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes#copy(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape)( uncheckedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape?, checkedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape?, uncheckedPressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape?, checkedPressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape? )` |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes#checkedPressedShape()` the shape of the toggle button when checked and pressed |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes#checkedShape()` the shape of the text toggle button when checked |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes#uncheckedPressedShape()` the shape of the toggle button when unchecked and pressed |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextToggleButtonShapes#uncheckedShape()` the shape of the text toggle button when unchecked |

## Public constructors

### TextToggleButtonShapes

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
TextToggleButtonShapes(
    uncheckedShape: Shape,
    checkedShape: Shape = uncheckedShape,
    uncheckedPressedShape: Shape = uncheckedShape,
    checkedPressedShape: Shape = uncheckedPressedShape
)
```

| Parameters |
|---|---|
| `uncheckedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape of the text toggle button when unchecked |
| `checkedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape = uncheckedShape` | the shape of the text toggle button when checked |
| `uncheckedPressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape = uncheckedShape` | the shape of the toggle button when unchecked and pressed |
| `checkedPressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape = uncheckedPressedShape` | the shape of the toggle button when checked and pressed |

## Public functions

### copy

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
fun copy(
    uncheckedShape: Shape? = this.uncheckedShape,
    checkedShape: Shape? = this.checkedShape,
    uncheckedPressedShape: Shape? = this.uncheckedPressedShape,
    checkedPressedShape: Shape? = this.checkedPressedShape
): TextToggleButtonShapes
```

### equals

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

### hashCode

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

## Public properties

### checkedPressedShape

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val checkedPressedShape: Shape
```

the shape of the toggle button when checked and pressed

### checkedShape

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val checkedShape: Shape
```

the shape of the text toggle button when checked

### uncheckedPressedShape

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val uncheckedPressedShape: Shape
```

the shape of the toggle button when unchecked and pressed

### uncheckedShape

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val uncheckedShape: Shape
```

the shape of the text toggle button when unchecked