androidx.compose.ui.window

PopupPositionProvider

Interface · from org.jetbrains.compose.ui:ui:1.12.2

No hand-written docs yet.

Calculates the position of a Popup on screen.

interface PopupPositionProvider

Kinds of PopupPositionProvider

Anywhere a PopupPositionProvider is expected, you can pass any of these.

How to get one

Ready-made values and functions that return it

Or create one of the kinds listed above.

Used by

Parameters that take a PopupPositionProvider.

Functions

calculatePosition

fun calculatePosition(
    anchorBounds: IntRect,
    windowSize: IntSize,
    layoutDirection: LayoutDirection,
    popupContentSize: IntSize,
): IntOffset

Calculates the position of a Popup on screen.

Library docs

Calculates the position of a Popup on screen.