This commit is contained in:
2025-08-25 16:30:06 -04:00
parent 325e13c01f
commit d4b1a56467
2 changed files with 4 additions and 1 deletions

2
TODO
View File

@@ -1,6 +1,6 @@
images
settings (sampler)
track handles and free unused
text
on update for text widget (then don't need to store textures in active data)
abstract sensors to work with any event, maybe associate data as well?
make current senses orable so you can select multiple

View File

@@ -183,6 +183,9 @@ impl<'a, Ctx> Painter<'a, Ctx> {
}
}
/// shifts the primitive spans for all widgets above this one in the tree
/// also goes into children of them and modifies those that come after this one
/// should be done after applying primitives to ensure active spans are correct
fn shift_parent(&mut self, parent: Id, start: usize, delta: isize) {
let instance = self.active.widgets.get_mut(&parent).unwrap();
let end = &mut instance.span.end;