macro_rules! hlayout {
($($view:expr), *) => { ... };
}
Expand description
Convenience macro that creates a horizontal layout of views
ยงExample
let mut root = cursive::default();
root.add_fullscreen_layer(
Dialog::around(
hlayout!(
TextView::new("Yes "),
TextView::new("No")
)
)
.button("Quit", Cursive::quit)
);
root.run();