🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

TooltipScope

Tooltip scope for TooltipBox to be used to obtain the LayoutCoordinates of the anchor content, and to draw a caret for the tooltip.

Source set: Common
public sealed interface TooltipScope

Tooltip scope for TooltipBox to be used to obtain the LayoutCoordinates of the anchor content, and to draw a caret for the tooltip.

Functions

drawCaret

Source set: Common
@Deprecated("Maintained for binary compatibility", level = DeprecationLevel.HIDDEN)
    public fun Modifier.drawCaret(draw: CacheDrawScope.(LayoutCoordinates?) -> DrawResult): Modifier

Modifier that is used to draw the caret for the tooltip. A LayoutCoordinates will be provided that can be used to obtain the bounds of the anchor content, which can be used to draw the caret more precisely. PlainTooltip and RichTooltip have default implementations for their caret.

obtainAnchorBounds

Source set: Common
@FrequentlyChangingValue public fun obtainAnchorBounds(): LayoutCoordinates?

Used to obtain the LayoutCoordinates of the anchor content. This can be used to help draw the caret pointing to the anchor content.

obtainAnchorBounds

Source set: Common
@Deprecated(
        "Maintained for binary compatibility. Use the version without the MeasureScope receiver.",
        ReplaceWith("obtainAnchorBounds()"),
        level = DeprecationLevel.HIDDEN,
    )
    public fun MeasureScope.obtainAnchorBounds(): LayoutCoordinates?

Used to obtain the LayoutCoordinates of the anchor content. This can be used to help draw the caret pointing to the anchor content.

obtainPositionProvider

Source set: Common
public fun obtainPositionProvider(): PopupPositionProvider

Used to obtain the PopupPositionProvider used. This can be used to help draw the caret pointing to the anchor content.

Content updated: