<div class='sourceset sourceset-common'>Common</div>

```kotlin
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

<h2 id="position-anchorbounds-windowsize-menuwidth-layoutdirection">position</h2>

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