Macro cursive_extras::hlayout
source · 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", |r| r.quit())
);
root.run();