warning
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
pub struct DynState {
|
// pub struct DynState {
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
|
|||||||
@@ -3,20 +3,12 @@ use crate::{
|
|||||||
util::{DynBorrower, HashSet, SlotVec, forget_mut, to_mut},
|
util::{DynBorrower, HashSet, SlotVec, forget_mut, to_mut},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
pub struct Widgets {
|
pub struct Widgets {
|
||||||
pub needs_redraw: HashSet<WidgetId>,
|
pub needs_redraw: HashSet<WidgetId>,
|
||||||
vec: SlotVec<WidgetData>,
|
vec: SlotVec<WidgetData>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Widgets {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self {
|
|
||||||
needs_redraw: Default::default(),
|
|
||||||
vec: Default::default(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Widgets {
|
impl Widgets {
|
||||||
pub fn has_updates(&self) -> bool {
|
pub fn has_updates(&self) -> bool {
|
||||||
!self.needs_redraw.is_empty()
|
!self.needs_redraw.is_empty()
|
||||||
|
|||||||
Reference in New Issue
Block a user