TooltipPlacement.CursorPoint



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

Summary

Public constructors

CursorPoint(offset: DpOffset, alignment: Alignment, windowMargin: Dp)
android

Public functions

open PopupPositionProvider

Returns PopupPositionProvider implementation.

android

Public constructors

CursorPoint

CursorPoint(
    offset: DpOffset = DpOffset.Zero,
    alignment: Alignment = Alignment.BottomEnd,
    windowMargin: Dp = 4.dp
)
Parameters
offset: DpOffset = DpOffset.Zero

DpOffset to be added to the position of the popup.

alignment: Alignment = Alignment.BottomEnd

The alignment of the popup relative to the current cursor position.

windowMargin: Dp = 4.dp

Defines the area within the window that limits the placement of the popup.

Public functions

positionProvider

@Composable
open fun positionProvider(): PopupPositionProvider

Returns PopupPositionProvider implementation.