MenuPositionScope


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

Summary

Public properties

IntRect

The bounds of the anchor relative to window layout bounds.

Cmn
LayoutDirection

The current active layout direction (LTR or RTL).

Cmn
IntSize

The calculated dimensions of the menu popup.

Cmn
IntSize

The overall size of the hosting window.

Cmn

Public properties

anchorBounds

val anchorBounds: IntRect

The bounds of the anchor relative to window layout bounds.

layoutDirection

val layoutDirection: LayoutDirection

The current active layout direction (LTR or RTL).

val menuSize: IntSize

The calculated dimensions of the menu popup.

windowSize

val windowSize: IntSize

The overall size of the hosting window.