[go: up one dir, main page]

OnEvent

Trait OnEvent 

Source
pub trait OnEvent: Debug + Downcast {
    // Provided method
    fn on_event(
        &mut self,
        _ctx: &mut Context,
        event: Box<dyn Event>,
    ) -> Vec<Box<dyn Event>> { ... }
}

Provided Methods§

Source

fn on_event( &mut self, _ctx: &mut Context, event: Box<dyn Event>, ) -> Vec<Box<dyn Event>>

Implementors§

Source§

impl OnEvent for Enum

Source§

impl<D: Drawable + 'static> OnEvent for Button<D>

Source§

impl<D: Drawable + 'static> OnEvent for Selectable<D>

Source§

impl<D: Drawable + 'static> OnEvent for Slider<D>

Source§

impl<D: Drawable + 'static> OnEvent for TextInput<D>

Source§

impl<D: Drawable + 'static> OnEvent for Opt<D>

Source§

impl<L: Drawable + 'static, R: Drawable + 'static> OnEvent for EitherOr<L, R>

Source§

impl<L: Layout + 'static, D: Drawable + 'static> OnEvent for Bin<L, D>