Skip to main content

Tooltipped

Trait Tooltipped 

Source
pub trait Tooltipped: StatefulInteractiveElement + Sized {
    // Provided method
    fn tip(
        self,
        control: impl Into<Ident>,
        text: impl Into<SharedString>,
    ) -> Self { ... }
}
Expand description

Attaches hover help to a control.

Hover tracking needs an element identity, so the element must already carry an id.

Provided Methods§

Source

fn tip(self, control: impl Into<Ident>, text: impl Into<SharedString>) -> Self

Shows text after GPUI’s hover delay, published as help for the control identified by control in deterministic semantic snapshots.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§