wgui: new_pass attrib, refactoring

This commit is contained in:
Aleksander
2025-11-27 20:32:59 +01:00
parent 9696d6730d
commit 192ffab4fd
8 changed files with 36 additions and 14 deletions

View File

@@ -81,6 +81,7 @@ pub struct WidgetState {
pub obj: Box<dyn WidgetObj>,
pub event_listeners: EventListenerCollection,
pub interactable: bool,
pub new_pass: bool, // force a new render pass
}
impl WidgetState {
@@ -104,6 +105,7 @@ impl WidgetState {
obj,
event_listeners: EventListenerCollection::default(),
interactable: true,
new_pass: false,
}
}
}