pub trait RenderBackend {
// Required methods
fn set_color(&mut self, r: u8, g: u8, b: u8, a: u8);
fn rect(&mut self, x: f64, y: f64, w: f64, h: f64);
fn stroke_path(&mut self);
fn fill_path(&mut self);
fn draw_text(&mut self, x: f64, y: f64, text: &str, size: f64);
fn stroke_line(&mut self, x0: f64, y0: f64, x1: f64, y1: f64, _width: f64);
fn draw_line(&mut self, x0: f64, y0: f64, x1: f64, y1: f64, _width: f64);
}Expand description
Render backend trait for graphics output