Expand description
Tooltips drawn with the kit’s tooltip component: its fill, border,
radius, padding, shadow, text colour and size, and its placement
(tooltip.placement: widget, under the hovered widget from its
start edge as egui’s; pointer, under the pointer from its position)
with tooltip.offset between them. At the pointer, tooltip.offset-x
moves it towards the end side too (its corner offset-x across and
offset down from the pointer), and where the window lacks room on
the end side or below, it goes to the pointer’s other side, the same
distance away, rather than being pushed back under the pointer.
egui’s own [egui::Response::on_hover_text] keeps the popup’s look:
TooltipExt::tip is its kit counterpart, with egui’s timing (the
delay, the grace between neighbours), its accessibility (the text
describes the widget) and its tooltip layer.
use egui_pop_core::tooltip::TooltipExt as _;
fn toolbar(ui: &mut egui::Ui) {
ui.button("+ New").tip("Create a ticket");
}Enums§
- Tooltip
Placement - Where a tooltip goes (
tooltip.placement).
Traits§
- Tooltip
Ext - Kit tooltips on a widget’s response.
Functions§
- show
- Shows
addin the kit’s tooltip forresponsewhen egui would show a tooltip for it (enabled: for an enabled widget, else for a disabled one); its content’s result while shown.