Skip to main content

tooltip

Function tooltip 

Source
pub fn tooltip(ui: &mut Ui<'_>, text: &str)
Expand description

Small floating label hanging below the node it’s declared inside. The placement is dynamic (FloatConfig::fit): it flips above when the viewport bottom is too close and slides sideways off window edges. Typical use: if ui.is_hovered(key) { widgets::tooltip(ui, "..."); }