pub trait NotificationBoxExt {
// Required methods
fn notification_box(&self) -> &Box;
fn main_dialog(&self) -> &Dialog;
fn main_action_button(&self) -> &Button;
fn notification_image(&self) -> &Image;
fn notification_label(&self) -> &Label;
// Provided methods
fn show_notification(&self) { ... }
fn show_error(&self, msg: &str) { ... }
fn show_info(&self, msg: &str) { ... }
fn show_warning(&self, msg: &str) { ... }
fn hide_message(&self) { ... }
}