ToolTip

Trait ToolTip 

Source
pub trait ToolTip: Failable {
    // Required methods
    fn tooltip(&self) -> Result<String, Self::Error>;
    fn set_tooltip(&mut self, s: impl AsRef<str>) -> Result<(), Self::Error>;
}
Expand description

Common trait for widgets that have a tooltip.

Required Methods§

Source

fn tooltip(&self) -> Result<String, Self::Error>

Get the tooltip text of the widget.

Source

fn set_tooltip(&mut self, s: impl AsRef<str>) -> Result<(), Self::Error>

Set the tooltip text of the widget.

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.

Implementors§