diff --git a/TODO b/TODO index 2c4fcbc..461987c 100644 --- a/TODO +++ b/TODO @@ -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 diff --git a/src/layout/painter.rs b/src/layout/painter.rs index 04a57c7..8e71b11 100644 --- a/src/layout/painter.rs +++ b/src/layout/painter.rs @@ -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;