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
Rule
with the given height. - vertical
- Creates a new vertical
Rule
with the given width. - weak
- A
Rule
styling using the weak background color.