Function info_dialog

Source
pub fn info_dialog<T: Display, U: Into<StyledString>>(
    title: T,
    text: U,
) -> OnEventView<Dialog>
Expand description

Convenience function that shows a user a dialog box with a message that includes a back button

ยงExample

let mut root = cursive::default();
root.add_layer(info_dialog("Info", "This is important!"));
root.run();
OSZAR »