summaryrefslogtreecommitdiffstats
path: root/runtime
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 /runtime
parent03bffe3db61b51d9e28f42c5bfea421b5612c484 (diff)
downloadiced-e5f1e31a5c068fe992cab076661cb6e2d120bdf1.tar.gz
iced-e5f1e31a5c068fe992cab076661cb6e2d120bdf1.tar.bz2
iced-e5f1e31a5c068fe992cab076661cb6e2d120bdf1.zip
Rename `Overlay::on_event` to `update`
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/overlay/nested.rs4
-rw-r--r--runtime/src/user_interface.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/src/overlay/nested.rs b/runtime/src/overlay/nested.rs
index 45f6b220..342ad70c 100644
--- a/runtime/src/overlay/nested.rs
+++ b/runtime/src/overlay/nested.rs
@@ -158,7 +158,7 @@ where
}
/// Processes a runtime [`Event`].
- pub fn on_event(
+ pub fn update(
&mut self,
event: Event,
layout: Layout<'_>,
@@ -211,7 +211,7 @@ where
})
.unwrap_or_default();
- element.on_event(
+ element.update(
event,
layout,
if nested_is_over {
diff --git a/runtime/src/user_interface.rs b/runtime/src/user_interface.rs
index 6997caf4..b2826f71 100644
--- a/runtime/src/user_interface.rs
+++ b/runtime/src/user_interface.rs
@@ -210,7 +210,7 @@ where
for event in events.iter().cloned() {
let mut shell = Shell::new(messages);
- overlay.on_event(
+ overlay.update(
event,
Layout::new(&layout),
cursor,