pub trait TooltipExt: Sized {
// Required methods
fn tip(self, text: impl Into<WidgetText>) -> Self;
fn disabled_tip(self, text: impl Into<WidgetText>) -> Self;
fn tip_ui(self, add: impl FnOnce(&mut Ui)) -> Self;
}Expand description
Kit tooltips on a widget’s response.
Required Methods§
Sourcefn tip(self, text: impl Into<WidgetText>) -> Self
fn tip(self, text: impl Into<WidgetText>) -> Self
Shows text in the kit’s tooltip while the widget is hovered and
enabled, as [Response::on_hover_text] does with egui’s.
Need (help): a tooltip.
Sourcefn disabled_tip(self, text: impl Into<WidgetText>) -> Self
fn disabled_tip(self, text: impl Into<WidgetText>) -> Self
Shows text in the kit’s tooltip while the widget is hovered and
disabled (the reason it is), as
[Response::on_disabled_hover_text].
Need (help): why a control is disabled.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.