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 anchorBoundsIntRect

The bounds of the anchor relative to window layout bounds.

layoutDirection

val layoutDirectionLayoutDirection

The current active layout direction (LTR or RTL).

val menuSizeIntSize

The calculated dimensions of the menu popup.

windowSize

val windowSizeIntSize

The overall size of the hosting window.