1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Do bookkeeping of Ids, showing the Debug of it's source

This commit is contained in:
lucasmerlin
2025-03-27 11:20:24 +01:00
parent 5d6aaa239b
commit f4dcb996da
13 changed files with 142 additions and 36 deletions

View File

@@ -275,7 +275,7 @@ impl<'a> TableBuilder<'a> {
/// This is required if you have multiple tables in the same [`Ui`].
#[inline]
#[deprecated = "Renamed id_salt"]
pub fn id_source(self, id_salt: impl std::hash::Hash) -> Self {
pub fn id_source(self, id_salt: impl egui::IdTrait) -> Self {
self.id_salt(id_salt)
}
@@ -283,7 +283,7 @@ impl<'a> TableBuilder<'a> {
///
/// This is required if you have multiple tables in the same [`Ui`].
#[inline]
pub fn id_salt(mut self, id_salt: impl std::hash::Hash) -> Self {
pub fn id_salt(mut self, id_salt: impl egui::IdTrait) -> Self {
self.id_salt = Id::new(id_salt);
self
}