Fix inconsistent naming of tree parameter in Widget trait (#2950)

* fix inconsistent naming of tree parameter in widget trait

* rename `Tree` parameter in various usages across iced
This commit is contained in:
edwloef 2025-11-25 23:58:07 +01:00 committed by GitHub
parent 6f0b408f90
commit 6bbe189809
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 127 additions and 128 deletions

View file

@ -125,7 +125,7 @@ where
fn update(
&mut self,
state: &mut widget::Tree,
tree: &mut widget::Tree,
event: &Event,
layout: Layout<'_>,
cursor: mouse::Cursor,
@ -139,7 +139,7 @@ where
}
self.content.as_widget_mut().update(
state, event, layout, cursor, renderer, clipboard, shell, viewport,
tree, event, layout, cursor, renderer, clipboard, shell, viewport,
);
}
@ -180,7 +180,7 @@ where
fn mouse_interaction(
&self,
state: &widget::Tree,
tree: &widget::Tree,
layout: Layout<'_>,
cursor: mouse::Cursor,
viewport: &Rectangle,
@ -192,19 +192,19 @@ where
self.content
.as_widget()
.mouse_interaction(state, layout, cursor, viewport, renderer)
.mouse_interaction(tree, layout, cursor, viewport, renderer)
}
fn operate(
&mut self,
state: &mut widget::Tree,
tree: &mut widget::Tree,
layout: Layout<'_>,
renderer: &Renderer,
operation: &mut dyn widget::Operation,
) {
self.content
.as_widget_mut()
.operate(state, layout, renderer, operation);
.operate(tree, layout, renderer, operation);
}
fn overlay<'a>(