Interface

MenuPosition.Horizontal

An interface to calculate the horizontal position of a menu with respect to its anchor, window, and layout direction.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
fun interface Horizontal

An interface to calculate the horizontal position of a menu with respect to its anchor, window, and layout direction. The returned x-coordinate is relative to the window.

Functions

position

fun position(
            anchorBounds: IntRect,
            windowSize: IntSize,
            menuWidth: Int,
            layoutDirection: LayoutDirection,
        ): Int