Make Overlay::on_event return event::Status

This commit is contained in:
Héctor Ramón Jiménez 2020-11-12 01:29:11 +01:00
parent 3aca177132
commit 6e9bd0d9d1
4 changed files with 17 additions and 10 deletions

View file

@ -6,7 +6,9 @@ pub mod menu;
pub use element::Element;
pub use menu::Menu;
use crate::{layout, Clipboard, Event, Hasher, Layout, Point, Size};
use crate::event::{self, Event};
use crate::layout;
use crate::{Clipboard, Hasher, Layout, Point, Size};
/// An interactive component that can be displayed on top of other widgets.
pub trait Overlay<Message, Renderer>
@ -79,6 +81,7 @@ where
_messages: &mut Vec<Message>,
_renderer: &Renderer,
_clipboard: Option<&dyn Clipboard>,
) {
) -> event::Status {
event::Status::Ignored
}
}