Crates.io | egui-notify |
lib.rs | egui-notify |
version | |
source | src |
created_at | 2022-08-22 21:52:39.214455+00 |
updated_at | 2025-02-07 13:01:12.600868+00 |
description | Simple notifications library for egui |
homepage | |
repository | https://github.com/ItsEthra/egui-notify |
max_upload_size | |
id | 650619 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Simple notifications library for egui
use egui_notify::Toasts;
use std::time::Duration;
// initialize once
let mut toasts = Toasts::default();
// somewhere within [egui::App::update]...
toasts.info("Hello world!").duration(Duration::from_secs(5));
// ...
toasts.show(ctx);
cargo add egui-notify
[dependencies]
egui-notify = "0.17.0"
egui-toast
egui-notify
hasContext
you pass to it (like if for example, you passed in a Context
already altered for an egui::Window
)Toasts
instance once, save save somewhere in application state)Toasts
instance, implements Send
, Sync
.