Module cosmic::iced::widget::rule

source ·
Expand description

Rules divide space horizontally or vertically.

§Example

use iced::widget::horizontal_rule;

#[derive(Clone)]
enum Message {
    // ...,
}

fn view(state: &State) -> Element<'_, Message> {
    horizontal_rule(2).into()
}

Structs§

  • Display a horizontal or vertical rule for dividing content.
  • The appearance of a rule.

Enums§

Traits§

Functions§

Type Aliases§