Expand description
Rules divide space horizontally or vertically.
§Example
use iced::widget::rule;
#[derive(Clone)]
enum Message {
// ...,
}
fn view(state: &State) -> Element<'_, Message> {
rule::horizontal(2).into()
}Structs§
Enums§
- Fill
Mode - The fill mode of a rule.
Traits§
Functions§
- default
- The default styling of a
Rule. - horizontal
- Creates a new horizontal
Rulewith the given height. - vertical
- Creates a new vertical
Rulewith the given width. - weak
- A
Rulestyling using the weak background color.