Trait duat_core::input::InputMethod

source ·
pub trait InputMethod<U>: Send + Sync + 'static
where U: Ui,
{ type Widget: ActiveWidget<U> where Self: Sized; // Required method fn send_key( &mut self, key: KeyEvent, widget: &RwData<Self::Widget>, area: &U::Area, globals: Context<U>, ) where Self: Sized; // Provided methods fn cursors(&self) -> Option<&Cursors> { ... } fn on_focus(&mut self, _area: &U::Area) where Self: Sized { ... } fn on_unfocus(&mut self, _area: &U::Area) where Self: Sized { ... } }

Required Associated Types§

source

type Widget: ActiveWidget<U> where Self: Sized

Required Methods§

source

fn send_key( &mut self, key: KeyEvent, widget: &RwData<Self::Widget>, area: &U::Area, globals: Context<U>, )
where Self: Sized,

Provided Methods§

source

fn cursors(&self) -> Option<&Cursors>

source

fn on_focus(&mut self, _area: &U::Area)
where Self: Sized,

source

fn on_unfocus(&mut self, _area: &U::Area)
where Self: Sized,

Implementors§

source§

impl<U> InputMethod<U> for KeyMap
where U: Ui,

§

type Widget = File