summaryrefslogtreecommitdiffstats
path: root/native/src/event.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-12 00:09:52 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-12 00:09:52 +0100
commit3f968b8c876b7c2351232856887fb9c3e3db3130 (patch)
tree0d8c04a09e2da877bb823bc039a57d4222fb1346 /native/src/event.rs
parent1db11ba69a3183924a1f4cae91031f4c5051b6dc (diff)
downloadiced-3f968b8c876b7c2351232856887fb9c3e3db3130.tar.gz
iced-3f968b8c876b7c2351232856887fb9c3e3db3130.tar.bz2
iced-3f968b8c876b7c2351232856887fb9c3e3db3130.zip
Make `Widget::on_event` return an `event::Status`
Diffstat (limited to 'native/src/event.rs')
-rw-r--r--native/src/event.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/native/src/event.rs b/native/src/event.rs
index 160b5ce7..91f33bd5 100644
--- a/native/src/event.rs
+++ b/native/src/event.rs
@@ -19,22 +19,19 @@ pub enum Event {
Window(window::Event),
}
-/// The status of an [`Event`] after being processed by a [`UserInterface`].
+/// The status of an [`Event`] after being processed.
///
/// [`Event`]: enum.Event.html
/// [`UserInterface`]: ../struct.UserInterface.html
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Status {
- /// The [`Event`] was _NOT_ handled by any widget in the [`UserInterface`].
+ /// The [`Event`] was _NOT_ handled by any widget.
///
/// [`Event`]: enum.Event.html
- /// [`UserInterface`]: ../struct.UserInterface.html
Ignored,
- /// The [`Event`] was handled and processed by a widget in the
- /// [`UserInterface`].
+ /// The [`Event`] was handled and processed by a widget.
///
/// [`Event`]: enum.Event.html
- /// [`UserInterface`]: ../struct.UserInterface.html
Captured,
}