InputComponent

Trait InputComponent 

Source
pub trait InputComponent {
    // Required methods
    fn info(&self) -> ComponentInfo;
    fn run(&mut self, ctx: &mut dyn Context) -> Result<InputValue, Error>;
}
Expand description

Interactive component that runs with a context

Required Methods§

Source

fn info(&self) -> ComponentInfo

Get component information

Source

fn run(&mut self, ctx: &mut dyn Context) -> Result<InputValue, Error>

Run the component, handling rendering and events internally

Implementors§