Skip to main content

attach_rich_tooltip_source

Function attach_rich_tooltip_source 

Source
pub fn attach_rich_tooltip_source(
    ctx: &mut BuildContext<'_>,
    anchor_id: WidgetId,
    source: RichTooltipSource,
    delay: Duration,
) -> WidgetId
Expand description

Attach a rich tooltip from a RichTooltipSource. Matches whether the source is a registry key or inline content and forwards to the appropriate helper. Convenient for builder methods that accept impl Into<RichTooltipSource> so callers can pass either a bare &str (resolved as a key) or a fully-built TooltipContent.