Component

Trait Component 

Source
pub trait Component<T> {
    // Required methods
    fn handle_message(&mut self, message: WindowMessage) -> Option<T>;
    fn draw(&self, theme_info: &ThemeInfo) -> Vec<DrawInstructions>;
    fn focusable(&self) -> bool;
    fn clickable(&self) -> bool;
    fn name(&self) -> &String;
}

Required Methods§

Source

fn handle_message(&mut self, message: WindowMessage) -> Option<T>

Source

fn draw(&self, theme_info: &ThemeInfo) -> Vec<DrawInstructions>

Source

fn focusable(&self) -> bool

Source

fn clickable(&self) -> bool

Source

fn name(&self) -> &String

Implementors§