[][src]Trait lognplot::render::Canvas

pub trait Canvas {
    fn set_pen(&mut self, color: Color);
fn print_text(&mut self, p: &Point, text: &str);
fn draw_line(&mut self, points: &[Point]);
fn draw_polygon(&mut self, points: &[Point]);
fn fill_polygon(&mut self, points: &[Point]); }

A generic canvas trait. Implement this trait to become a drawing canvas.

Required methods

fn set_pen(&mut self, color: Color)

fn print_text(&mut self, p: &Point, text: &str)

fn draw_line(&mut self, points: &[Point])

fn draw_polygon(&mut self, points: &[Point])

fn fill_polygon(&mut self, points: &[Point])

Loading content...

Implementors

impl<'w> Canvas for SvgOutput<'w>[src]

Implement the canvas API for svg output!

fn draw_line(&mut self, points: &[Point])[src]

Draw a line between points.

Loading content...