pub trait InteractiveWidget: Widget {
// Required method
fn handle_event(&mut self, event: &Event) -> EventResult;
}Expand description
A widget that can handle input events.
Required Methods§
Sourcefn handle_event(&mut self, event: &Event) -> EventResult
fn handle_event(&mut self, event: &Event) -> EventResult
Handle an input event. Returns whether the event was consumed.