# egui-notify **Repository Path**: happydpc/egui-notify ## Basic Information - **Project Name**: egui-notify - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-13 - **Last Updated**: 2025-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # egui-notify Simple notifications library for [`egui`](https://github.com/emilk/egui) ![example_image](media/toasts_type.png) ![example_video](media/toasts_example_video.gif) # Usage ```rust use egui_notify::Toasts; use std::time::Duration; // initialize once let mut toasts = Toasts::default(); ``` ```rust // somewhere within [egui::App::update]... toasts.info("Hello world!").set_duration(Duration::from_secs(5)); // ... toasts.show(ctx); ``` # Installation ```toml [dependencies] egui-notify = "0.10" ``` # Difference to [`egui-toast`](https://github.com/urholaukkarinen/egui-toast) ### `egui-notify` has - Animations for appearing/disappearing toasts - Duration meter for expiring toasts - Toast positioning not influenced by which `Context` you pass to it (like if for example, you passed in a `Context` already altered for an `egui::Window`) - Differing methodology (create `Toasts` instance once, save save somewhere in application state) - Threadsafe `Toasts` instance, implements `Send`, `Sync`. - No support for custom toasts