pub trait Renderer {
fn clear(&mut self, color: Color);
fn char(&mut self, pos: Point, c: char, color: Color);
fn image(&mut self, pos: Point, image: &Image);
fn pixel(&mut self, point: Point, color: Color);
fn arc(&mut self, center: Point, radius: i32, parts: u8, color: Color);
fn circle(&mut self, center: Point, radius: i32, color: Color);
fn line(&mut self, start: Point, end: Point, color: Color);
fn rect(&mut self, rect: Rect, color: Color);
fn rounded_rect(&mut self, rect: Rect, radius: u32, filled: bool, color: Color) { ... }
}
Required Methods
fn clear(&mut self, color: Color)
fn image(&mut self, pos: Point, image: &Image)
fn pixel(&mut self, point: Point, color: Color)
fn arc(&mut self, center: Point, radius: i32, parts: u8, color: Color)
fn circle(&mut self, center: Point, radius: i32, color: Color)
fn line(&mut self, start: Point, end: Point, color: Color)
fn rect(&mut self, rect: Rect, color: Color)
Provided Methods
Implementors