Skip to main content

TheIconViewTrait

Trait TheIconViewTrait 

Source
pub trait TheIconViewTrait {
    // Required methods
    fn set_rgba_tile(&mut self, tile: TheRGBATile);
    fn step(&mut self);
    fn set_border_color(&mut self, color: Option<[u8; 4]>);
    fn set_text_color(&mut self, color: [u8; 4]);
    fn set_text(&mut self, text: Option<String>);
    fn set_text_size(&mut self, text_size: f32);
    fn set_alpha_mode(&mut self, alpha_mode: bool);
}

Required Methods§

Source

fn set_rgba_tile(&mut self, tile: TheRGBATile)

Source

fn step(&mut self)

Source

fn set_border_color(&mut self, color: Option<[u8; 4]>)

Source

fn set_text_color(&mut self, color: [u8; 4])

Source

fn set_text(&mut self, text: Option<String>)

Set the text to display.

Source

fn set_text_size(&mut self, text_size: f32)

Set the text size.

Source

fn set_alpha_mode(&mut self, alpha_mode: bool)

Set the alpha blending.

Implementors§