pub fn show_tooltip_for<R>(
ctx: &Context,
parent_layer: LayerId,
widget_id: Id,
widget_rect: &Rect,
add_contents: impl FnOnce(&mut Ui) -> R,
) -> R
Expand description
Show a tooltip under the given area.
If the tooltip does not fit under the area, it tries to place it above it instead.