# TextButtonShapes

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/TextButton.kt+class:androidx.wear.compose.material3.TextButtonShapes) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
class TextButtonShapes
```

<br />

*** ** * ** ***

Represents the shapes used for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#TextButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.TextButtonShapes,androidx.wear.compose.material3.TextButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)` in various states.

If `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes#(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape)` is non null the shape will be animated on press.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes#TextButtonShapes(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)` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes#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?)` |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes#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/TextButtonShapes#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes#pressedShape()` the shape of the text button when pressed |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonShapes#shape()` the shape of the text button when enabled |

## Public constructors

### TextButtonShapes

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

```
TextButtonShapes(shape: Shape, pressedShape: Shape = shape)
```

| Parameters |
|---|---|
| `shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape of the text button when enabled |
| `pressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape = shape` | the shape of the text button when pressed |

## Public functions

### copy

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

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

### equals

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

### hashCode

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

## Public properties

### pressedShape

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

```
val pressedShape: Shape
```

the shape of the text button when pressed

### shape

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

```
val shape: Shape
```

the shape of the text button when enabled