TooltipPlacement.ComponentRect



TooltipPlacement implementation for providing a PopupPositionProvider that calculates the position of the popup relative to the current component bounds.

Summary

Public constructors

ComponentRect(anchor: Alignment, alignment: Alignment, offset: DpOffset)
android

Public functions

open PopupPositionProvider

Returns PopupPositionProvider implementation.

android

Public constructors

ComponentRect

ComponentRect(
    anchor: Alignment = Alignment.BottomCenter,
    alignment: Alignment = Alignment.BottomCenter,
    offset: DpOffset = DpOffset.Zero
)
Parameters
anchor: Alignment = Alignment.BottomCenter

The anchor point relative to the current component bounds.

alignment: Alignment = Alignment.BottomCenter

The alignment of the popup relative to the anchor point.

offset: DpOffset = DpOffset.Zero

DpOffset to be added to the position of the popup.

Public functions

positionProvider

@Composable
open fun positionProvider(): PopupPositionProvider

Returns PopupPositionProvider implementation.