pub trait Component {
    type Response;
    type DrawResponse;

    fn handle_event(&mut self, event: Event) -> Self::Response;
    fn draw(&mut self, rect: Rect, buffer: &mut Buffer) -> Self::DrawResponse;
}
Expand description

A trait enabling a nested layout of UI components

Required Associated Types

Required Methods

Implementors