Notification

Trait Notification 

Source
pub trait Notification:
    Send
    + Sync
    + 'static {
    // Required method
    fn show(&mut self, ctx: &Context) -> bool;
}
Expand description

Trait for modal Notification windows (like errors or settings dialogs). Allows layout.rs to manage different notification types polymorphically via Box<dyn Notification>.

Required Methods§

Source

fn show(&mut self, ctx: &Context) -> bool

Renders the notification window using egui::Window. Called repeatedly by layout.rs::check_notification while the notification is active.

§Returns

true if the window should remain open, false if closed.

Implementors§