This commit is contained in:
2025-08-13 03:15:50 -04:00
parent 9e80a32a4b
commit 4d68fa476d
2 changed files with 2 additions and 6 deletions

View File

@@ -70,10 +70,6 @@ macro_rules! WidgetFnRet {
}
pub(crate) use WidgetFnRet;
pub trait _WidgetFn<W: Widget> {
fn call(ui: &mut Ui) -> W;
}
pub trait Idable {
type Widget: Widget;
fn set(self, ui: &mut Ui, id: &WidgetId<Self::Widget>);

View File

@@ -4,12 +4,12 @@
/// point to something valid, although duplicate
/// gets around this if needed
#[derive(Eq, Hash, PartialEq, Debug)]
pub struct ID(usize);
pub struct ID(u64);
#[derive(Default)]
pub struct IDTracker {
free: Vec<ID>,
cur: usize,
cur: u64,
}
impl IDTracker {