Rename Widget::on_event to update

This commit is contained in:
Héctor Ramón Jiménez 2024-10-25 22:06:06 +02:00
parent dcc184b01b
commit f02bfc3f68
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F
37 changed files with 67 additions and 67 deletions

View file

@ -261,7 +261,7 @@ where
layout::atomic(limits, self.size, self.size)
}
fn on_event(
fn update(
&mut self,
tree: &mut Tree,
event: Event,

View file

@ -175,7 +175,7 @@ where
layout::atomic(limits, self.width, self.height)
}
fn on_event(
fn update(
&mut self,
tree: &mut Tree,
event: Event,