summaryrefslogtreecommitdiffstats
path: root/widget/src/lazy/component.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-06 00:02:46 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-06 00:02:46 +0100
commite5f1e31a5c068fe992cab076661cb6e2d120bdf1 (patch)
treee4be53b3bf9c73868f6694378a0eea670e270f52 /widget/src/lazy/component.rs
parent03bffe3db61b51d9e28f42c5bfea421b5612c484 (diff)
downloadiced-e5f1e31a5c068fe992cab076661cb6e2d120bdf1.tar.gz
iced-e5f1e31a5c068fe992cab076661cb6e2d120bdf1.tar.bz2
iced-e5f1e31a5c068fe992cab076661cb6e2d120bdf1.zip
Rename `Overlay::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 6f661ef6..1758b963 100644
--- a/widget/src/lazy/component.rs
+++ b/widget/src/lazy/component.rs
@@ -601,7 +601,7 @@ where
.unwrap_or_default()
}
- fn on_event(
+ fn update(
&mut self,
event: core::Event,
layout: Layout<'_>,
@@ -614,7 +614,7 @@ where
let mut local_shell = Shell::new(&mut local_messages);
let _ = self.with_overlay_mut_maybe(|overlay| {
- overlay.on_event(
+ overlay.update(
event,
layout,
cursor,