usecrate::{event::EventBox,widget_base::StatesContext};/// This trait is used to define an event handler.
pubtraitEventHandler{/// Handles an `event` by the given `widget`. If it returns `true` the event will not be forwarded.
fnhandle_event(&self, state_context:&mut StatesContext, event:&EventBox)->bool;/// Check if the handler could handle the given event box.
fnhandles_event(&self, event:&EventBox)->bool;}