Module 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§

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

Enums§

FillMode
The fill mode of a rule.

Traits§

Catalog
The theme catalog of a Rule.

Functions§

default
The default styling of a Rule.

Type Aliases§

StyleFn
A styling function for a Rule.