[][src]Trait termit_ui::widget::Widget

pub trait Widget {
    fn render(&self, painter: &mut dyn Painter) -> Result<()> { ... }
fn arrange(&mut self, _window: Window) { ... }
fn consume(&mut self, input: Vec<GrinInput>) -> Vec<GrinInput> { ... }
fn captures(&self, window: Window, point: Point) -> bool { ... } }

Provided methods

fn render(&self, painter: &mut dyn Painter) -> Result<()>

fn arrange(&mut self, _window: Window)

fn consume(&mut self, input: Vec<GrinInput>) -> Vec<GrinInput>

fn captures(&self, window: Window, point: Point) -> bool

Loading content...

Implementors

impl Widget for Canvas[src]

fn captures(&self, window: Window, point: Point) -> bool[src]

impl Widget for ElementaryWidget[src]

fn captures(&self, window: Window, point: Point) -> bool[src]

Loading content...