Start native apps faster with the Composables CLI ->
Interface

MenuPositionScope

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

Source set: Common
public interface MenuPositionScope

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

Properties

anchorBounds

Source set: Common
public val anchorBounds: IntRect

The bounds of the anchor relative to window layout bounds.

windowSize

Source set: Common
public val windowSize: IntSize

The overall size of the hosting window.

Source set: Common
public val menuSize: IntSize

The calculated dimensions of the menu popup.

layoutDirection

Source set: Common
public val layoutDirection: LayoutDirection

The current active layout direction (LTR or RTL).