cosmic::iced_widgetFunction horizontal_rule
source pub fn horizontal_rule<'a, Theme>(height: impl Into<Pixels>) -> Rule<'a, Theme>
Expand description
Creates a horizontal Rule
with the given height.
ยงExample
use iced::widget::horizontal_rule;
#[derive(Clone)]
enum Message {
}
fn view(state: &State) -> Element<'_, Message> {
horizontal_rule(2).into()
}