androidx.compose.material3

MenuPositionScopeSince 1.12

Interface

No hand-written docs yet.

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

interface MenuPositionScope

Used by

Parameters that take a MenuPositionScope.

Properties

anchorBounds

val anchorBounds: IntRect

The bounds of the anchor relative to window layout bounds.

windowSize

val windowSize: IntSize

The overall size of the hosting window.

val menuSize: IntSize

The calculated dimensions of the menu popup.

layoutDirection

val layoutDirection: LayoutDirection

The current active layout direction (LTR or RTL).

Library docs

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