Trait duat_core::input::InputMethod
source · pub trait InputMethod<U>: Send + Sync + 'staticwhere
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 { ... }
}