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

Add IdInfo and only enable this with debug_assertions

This commit is contained in:
lucasmerlin
2025-03-27 16:05:37 +01:00
parent f4dcb996da
commit 4ca5e49722
6 changed files with 152 additions and 94 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 egui::IdTrait) -> Self {
pub fn id_source(self, id_salt: impl egui::AsId) -> 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 egui::IdTrait) -> Self {
pub fn id_salt(mut self, id_salt: impl egui::AsId) -> Self {
self.id_salt = Id::new(id_salt);
self
}