diff options
Diffstat (limited to 'examples/message.rs')
-rw-r--r-- | examples/message.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/message.rs b/examples/message.rs new file mode 100644 index 0000000..a72ef00 --- /dev/null +++ b/examples/message.rs @@ -0,0 +1,14 @@ +// Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org> +// SPDX-License-Identifier: MIT + +use std::io::Result; + +use dialog::DialogBox; + +fn main() -> Result<()> { + dialog::Message::new("This is a message.").show()?; + + dialog::Message::new("This is a message.") + .title("And this is a title:") + .show() +} |