pub trait Widget<Ev, Surface> {
type Output;
// Required methods
fn take_event(&self, ev: Ev, size: (u32, u32)) -> Self::Output;
fn draw(&self, surface: &mut Surface);
}pub trait Widget<Ev, Surface> {
type Output;
// Required methods
fn take_event(&self, ev: Ev, size: (u32, u32)) -> Self::Output;
fn draw(&self, surface: &mut Surface);
}