From d4b1a56467200f3d9a3f1394e2d887bc551807ad Mon Sep 17 00:00:00 2001 From: shadow cat Date: Mon, 25 Aug 2025 16:30:06 -0400 Subject: [PATCH] comments --- TODO | 2 +- src/layout/painter.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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;