iced::widget

Module tooltip

Source
Expand description

Tooltips display a hint of information over some element when hovered.

§Example

use iced::widget::{container, tooltip};

enum Message {
    // ...
}

fn view(_state: &State) -> Element<'_, Message> {
    tooltip(
        "Hover me to display the tooltip!",
        container("This is the tooltip contents!")
            .padding(10)
            .style(container::rounded_box),
        tooltip::Position::Bottom,
    ).into()
}

Structs§

  • An element to display a widget over another.

Enums§

  • The position of the tooltip. Defaults to following the cursor.