Skip to content

Commit

Permalink
make name of _tree/_state argument in Widget consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
edwloef committed Dec 14, 2024
1 parent e8f8216 commit 379ad1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ where
/// Applies an [`Operation`] to the [`Widget`].
fn operate(
&self,
_state: &mut Tree,
_tree: &mut Tree,
_layout: Layout<'_>,
_renderer: &Renderer,
_operation: &mut dyn Operation,
Expand All @@ -113,7 +113,7 @@ where
/// By default, it does nothing.
fn update(
&mut self,
_state: &mut Tree,
_tree: &mut Tree,
_event: Event,
_layout: Layout<'_>,
_cursor: mouse::Cursor,
Expand All @@ -129,7 +129,7 @@ where
/// By default, it returns [`mouse::Interaction::Idle`].
fn mouse_interaction(
&self,
_state: &Tree,
_tree: &Tree,
_layout: Layout<'_>,
_cursor: mouse::Cursor,
_viewport: &Rectangle,
Expand All @@ -141,7 +141,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<'_>,
_renderer: &Renderer,
_translation: Vector,
Expand Down

0 comments on commit 379ad1e

Please sign in to comment.