From 3f968b8c876b7c2351232856887fb9c3e3db3130 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 12 Nov 2020 00:09:52 +0100 Subject: Make `Widget::on_event` return an `event::Status` --- native/src/event.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'native/src/event.rs') 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, } -- cgit