Function cursive_extras::styled_editview
source · [−]pub fn styled_editview<C: Display>(
content: C,
view_name: &'static str,
password: bool
) -> NamedView<EditView>
Expand description
Convenience function that creates a named EditView
that has a better
looking style and can optionally act as a password entry box
Example
let mut root = cursive::default();
root.add_fullscreen_layer(
Dialog::around(styled_editview("yes", "edit", false))
.button("Quit", |view| view.quit())
.title("Styled EditView Example")
);
root.run();