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", |view| view.quit())
);
root.run();