Skip to main content

attach_composite_tooltip

Function attach_composite_tooltip 

Source
pub fn attach_composite_tooltip(
    ctx: &mut BuildContext<'_>,
    anchor_id: WidgetId,
    content: impl Widget + 'static,
    delay: Duration,
) -> WidgetId
Expand description

Attach a composite tooltip — third tier, hosting an arbitrary impl Widget + 'static body. Wires the same dwell-to-sticky machinery rich tooltips use, so the surface promotes to a Role::Dialog after the user dwells for DWELL_PROMOTION.