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).

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: