FixedCursorPoint

class FixedCursorPoint(offset: DpOffset = DpOffset.Zero, alignment: Alignment = Alignment.BottomEnd, windowMargin: Dp = 4.dp) : TooltipPlacement

TooltipPlacement implementation for providing a PopupPositionProvider that calculates the position of the popup relative to the current mouse cursor position, but never changes it after showing the popup.

Parameters

offset

DpOffset to be added to the position of the popup.

alignment

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

windowMargin

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

Constructors

Link copied to clipboard
constructor(offset: DpOffset = DpOffset.Zero, alignment: Alignment = Alignment.BottomEnd, windowMargin: Dp = 4.dp)

Functions

Link copied to clipboard
@Composable
open override fun positionProvider(cursorPosition: Offset): PopupPositionProvider