summaryrefslogtreecommitdiffstats
path: root/widget/src/lazy/component.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-10-25 22:06:06 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-05 23:52:58 +0100
commitf02bfc3f68322bea0c56283d76888714be401ec2 (patch)
treed7793a7572cbc441e16fa982155343bcc54e83ea /widget/src/lazy/component.rs
parentdcc184b01b753dbecb500205391f6eaaa21c8683 (diff)
downloadiced-f02bfc3f68322bea0c56283d76888714be401ec2.tar.gz
iced-f02bfc3f68322bea0c56283d76888714be401ec2.tar.bz2
iced-f02bfc3f68322bea0c56283d76888714be401ec2.zip
Rename `Widget::on_event` to `update`
Diffstat (limited to 'widget/src/lazy/component.rs')
-rw-r--r--widget/src/lazy/component.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/lazy/component.rs b/widget/src/lazy/component.rs
index 062e6f35..6f661ef6 100644
--- a/widget/src/lazy/component.rs
+++ b/widget/src/lazy/component.rs
@@ -311,7 +311,7 @@ where
})
}
- fn on_event(
+ fn update(
&mut self,
tree: &mut Tree,
event: core::Event,
@@ -327,7 +327,7 @@ where
let t = tree.state.downcast_mut::<Rc<RefCell<Option<Tree>>>>();
self.with_element_mut(|element| {
- element.as_widget_mut().on_event(
+ element.as_widget_mut().update(
&mut t.borrow_mut().as_mut().unwrap().children[0],
event,
layout,