Function cosmic::iced::widget::row

source ·
pub fn row<'a, Message, Theme, Renderer>(
    children: impl IntoIterator<Item = Element<'a, Message, Theme, Renderer>>,
) -> Row<'a, Message, Theme, Renderer>
where Renderer: Renderer,
Expand description

Creates a new Row from an iterator.

Rows distribute their children horizontally.

§Example

use iced::widget::{row, text};

enum Message {
    // ...
}

fn view(state: &State) -> Element<'_, Message> {
    row((0..5).map(|i| text!("Item {i}").into())).into()
}