idek stuff like stack

This commit is contained in:
2025-08-15 22:59:58 -04:00
parent a7dfacb83e
commit f4aef3a983
15 changed files with 138 additions and 42 deletions

View File

@@ -147,7 +147,7 @@ impl<Ctx> Widgets<Ctx> {
Self(HashMap::new())
}
pub fn get_dyn(&self, id: &WidgetId) -> &dyn Widget<Ctx> {
pub fn get_dyn<W>(&self, id: &WidgetId<W>) -> &dyn Widget<Ctx> {
self.0.get(&id.id).unwrap().as_ref()
}