This commit is contained in:
2025-12-20 00:27:08 -05:00
parent fabc7d0b90
commit 32ca4ec5a6
2 changed files with 4 additions and 12 deletions

View File

@@ -1,3 +1,3 @@
pub struct DynState {
}
// pub struct DynState {
//
// }

View File

@@ -3,20 +3,12 @@ use crate::{
util::{DynBorrower, HashSet, SlotVec, forget_mut, to_mut},
};
#[derive(Default)]
pub struct Widgets {
pub needs_redraw: HashSet<WidgetId>,
vec: SlotVec<WidgetData>,
}
impl Default for Widgets {
fn default() -> Self {
Self {
needs_redraw: Default::default(),
vec: Default::default(),
}
}
}
impl Widgets {
pub fn has_updates(&self) -> bool {
!self.needs_redraw.is_empty()