Macro cosmic::iced_widget::row
source · macro_rules! row { () => { ... }; ($($x:expr),+ $(,)?) => { ... }; }
Expand description
Creates a Row
with the given children.
Rows distribute their children horizontally.
§Example
use iced::widget::{button, row};
#[derive(Debug, Clone)]
enum Message {
// ...
}
fn view(state: &State) -> Element<'_, Message> {
row![
"I am to the left!",
button("I am in the middle!"),
"I am to the right!",
].into()
}