Macro cursive_extras::vlayout
source · macro_rules! vlayout { ($($view:expr), *) => { ... }; }
Expand description
Convenience macro that creates a vertical layout of views
Example
let mut root = cursive::default();
root.add_fullscreen_layer(
Dialog::around(
vlayout!(
TextView::new("Yes "),
TextView::new("No")
)
)
.button("Quit", |r| r.quit())
);
root.run();