# MenuItemShapes

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

  ```
  class MenuItemShapes
  ```

*** ** * ** ***

Represents the shapes used for a `https://developer.android.com/reference/kotlin/androidx/compose/material3/DropdownMenuItem.composable#DropdownMenuItem(kotlin.Function0,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.MenuItemColors,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.interaction.MutableInteractionSource)` in its various states.

## Summary

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

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/MenuItemShapes` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/MenuItemShapes#copy(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape)(shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape?, selectedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape?)` Returns a copy of this MenuItemShapes, 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/MenuItemShapes#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/MenuItemShapes#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/MenuItemShapes#selectedShape()` the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` to use when the item is selected. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/MenuItemShapes#shape()` the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` to use when the item is unselected. | Cmn |

## Public constructors

### MenuItemShapes

Cmn

```
MenuItemShapes(shape: Shape, selectedShape: Shape)
```

| Parameters |
|---|---|
| `shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` to use when the item is unselected. |
| `selectedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` to use when the item is selected. |

## Public functions

### copy

Cmn

```
fun copy(shape: Shape? = this.shape, selectedShape: Shape? = this.selectedShape): MenuItemShapes
```

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

### equals

Cmn

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

### hashCode

Cmn

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

## Public properties

### selectedShape

Cmn

```
val selectedShape: Shape
```

the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` to use when the item is selected.

### shape

Cmn

```
val shape: Shape
```

the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` to use when the item is unselected.