Skip to main content

Module tooltip

Module tooltip 

Source
Expand description

Tooltip — a wrapper widget that shows egui-style hover help.

Tooltips are submitted during the normal widget paint pass, but drawn at the end of the frame by crate::widget::App. That makes them true floating overlays instead of child-local decorations, so they can escape scroll-area clips and window content clips.

§Usage

Tooltip::new(
    Box::new(Button::new("Hover me", font.clone()).on_click(|| {})),
    "This is a tooltip",
    font.clone(),
)

Structs§

Tooltip
A wrapper widget that shows a text tooltip on hover.