Skip to main content

InteractiveWidget

Trait InteractiveWidget 

Source
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§

Source

fn handle_event(&mut self, event: &Event) -> EventResult

Handle an input event. Returns whether the event was consumed.

Implementors§