cosmic::iced_widget

Macro column

source
macro_rules! column {
    () => { ... };
    ($($x:expr),+ $(,)?) => { ... };
}
Expand description

Creates a Column with the given children.

Columns distribute their children vertically.

ยงExample

use iced::widget::{button, column};

#[derive(Debug, Clone)]
enum Message {
    // ...
}

fn view(state: &State) -> Element<'_, Message> {
    column![
        "I am on top!",
        button("I am in the center!"),
        "I am below.",
    ].into()
}