mirror of
https://github.com/storytold/egui.git
synced 2026-11-01 21:35:25 -08:00
`Ui::id` was easy to confuse with `Ui::unique_id`. It is the id of the _scope_ the `Ui` belongs to: stable across frames, shared by sibling `Ui`s, and the base for widget state ids. `Ui::unique_id` is unique per `Ui` but unstable. This renames `Ui::id` to `Ui::scope_id` (old name deprecated) and rewrites both docstrings to say so. Follow-up to discussion in: * https://github.com/emilk/egui/pull/8534#discussion_r3969041538 * [x] I have followed the instructions in the PR template 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>