Trait centaurea_ui::Drawable[][src]

pub trait Drawable<S: Style> {
    fn fill(&mut self, text: char, style: S);
fn rect(&mut self, rect: Rect, text: char, style: S);
fn string(&mut self, x: u16, y: u16, text: String, style: S);
fn pixels(&mut self, x: u16, y: u16, pixels: &Pixels<S>);
fn pixel(&mut self, x: u16, y: u16, pixel: Pixel<S>);
fn pixel_at_index(&mut self, index: usize, pixel: Pixel<S>); }

Required methods

fn fill(&mut self, text: char, style: S)[src]

fn rect(&mut self, rect: Rect, text: char, style: S)[src]

fn string(&mut self, x: u16, y: u16, text: String, style: S)[src]

fn pixels(&mut self, x: u16, y: u16, pixels: &Pixels<S>)[src]

fn pixel(&mut self, x: u16, y: u16, pixel: Pixel<S>)[src]

fn pixel_at_index(&mut self, index: usize, pixel: Pixel<S>)[src]

Loading content...

Implementors

impl<'a, S: Style> Drawable<S> for Canvas<'a, S>[src]

impl<S: Style> Drawable<S> for Buffer<S>[src]

Loading content...