# MenuPositionScope

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.MenuPositionScope) Common/AllAndroid/JVM
- Cmn

  ```
  interface MenuPositionScope
  ```

*** ** * ** ***

Provides context for calculating candidate menu positioning coordinates relative to window bounds.

## Summary

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntRect` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/MenuPositionScope#anchorBounds()` The bounds of the anchor relative to window layout bounds. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/MenuPositionScope#layoutDirection()` The current active layout direction (LTR or RTL). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/MenuPositionScope#menuSize()` The calculated dimensions of the menu popup. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/MenuPositionScope#windowSize()` The overall size of the hosting window. | Cmn |

## Public properties

### anchorBounds

Cmn

```
val anchorBounds: IntRect
```

The bounds of the anchor relative to window layout bounds.

### layoutDirection

Cmn

```
val layoutDirection: LayoutDirection
```

The current active layout direction (LTR or RTL).

### menuSize

Cmn

```
val menuSize: IntSize
```

The calculated dimensions of the menu popup.

### windowSize

Cmn

```
val windowSize: IntSize
```

The overall size of the hosting window.