mirror of
https://github.com/storytold/egui.git
synced 2026-11-20 17:42:29 +01:00
`Id::new` and `From<&str> for Id` etc are foot-guns: they hide the fact that an `Id` MUST be globally unique (well, at least unique within your app). So this PR removes both and replaces them with `Id::unique`, which is very explicit. In places where non-uniqueness is desired, you can use `IdSalt`, which has the convenient `From<&str>`. Most changes are in tests. --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Lucas Meurer <hi@lucasmerlin.me>
egui and eframe examples
All the examples in this folder uses eframe to set up a window for egui. Some examples are specific to eframe, but many are applicable to any egui integration.
There are a lot more examples at https://www.egui.rs, and it has links to the source code of each example.
Also check out the official docs at https://docs.rs/egui and https://docs.rs/eframe.
Note that all the examples on main are for the latest main version of egui.
If you want to look for examples for a specific version of egui, go to that tag, e.g. https://github.com/emilk/egui/tree/latest/examples.