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

@ -99,7 +99,7 @@ where
/// Applies an [`Operation`] to the [`Widget`].
fn operate(
&mut self,
_state: &mut Tree,
_tree: &mut Tree,
_layout: Layout<'_>,
_renderer: &Renderer,
_operation: &mut dyn Operation,
@ -111,7 +111,7 @@ where
/// By default, it does nothing.
fn update(
&mut self,
_state: &mut Tree,
_tree: &mut Tree,
_event: &Event,
_layout: Layout<'_>,
_cursor: mouse::Cursor,
@ -127,7 +127,7 @@ where
/// By default, it returns [`mouse::Interaction::None`].
fn mouse_interaction(
&self,
_state: &Tree,
_tree: &Tree,
_layout: Layout<'_>,
_cursor: mouse::Cursor,
_viewport: &Rectangle,
@ -139,7 +139,7 @@ where
/// Returns the overlay of the [`Widget`], if there is any.
fn overlay<'a>(
&'a mut self,
_state: &'a mut Tree,
_tree: &'a mut Tree,
_layout: Layout<'a>,
_renderer: &Renderer,
_viewport: &Rectangle,