Function egui::containers::popup::show_tooltip_at_pointer [−][src]
Expand description
Show a tooltip at the current pointer position (if any).
Most of the time it is easier to use Response::on_hover_ui
.
See also show_tooltip_text
.
if ui.ui_contains_pointer() {
egui::show_tooltip_at_pointer(ui.ctx(), egui::Id::new("my_tooltip"), |ui| {
ui.label("Helpful text");
});
}