Macro cosmic::iced_widget::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()
}