egui-notify
Simple notifications library for egui
Usage
use Toasts;
use Duration;
// initialize once
let mut toasts = default;
// somewhere within [egui::App::update]...
toasts.info.set_duration;
// ...
toasts.show;
Installation
[]
= "0.10"
Difference to 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 aContext
already altered for anegui::Window
) - Differing methodology (create
Toasts
instance once, save save somewhere in application state) - Threadsafe
Toasts
instance, implementsSend
,Sync
. - No support for custom toasts