Function information
Source pub fn information<T>(text: &str) -> MessageBox<'_, T>
Expand description
Creates a new message box where its icon is set to Information.
3fn main() -> Result<()> {
4 win_msgbox::information::<Okay>("Ferris landed on Mars.")
5 .title("Landing Module")
6 .show()?;
7 Ok(())
8}
More examples
Hide additional examples
3fn main() -> Result<()> {
4 win_msgbox::information::<Okay>(
5 "This is some longer paragraph to demonstrate how\nthe text is right justified.",
6 )
7 .right()
8 .title("Cool Demo App")
9 .show()?;
10 Ok(())
11}