[][src]Trait plotters::element::Drawable

pub trait Drawable {
    fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
        &self,
        pos: I,
        backend: &mut DB
    ) -> Result<(), DrawingErrorKind<DB::ErrorType>>; }

The trait indicates we are able to draw it on a drawing area

Required methods

fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
    &self,
    pos: I,
    backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>

Actually draws the element. The key points is already translated into the image cooridnate and can be used by DC directly

Loading content...

Implementors

impl<'a, Coord: 'a> Drawable for Circle<'a, Coord>[src]

impl<'a, Coord: 'a> Drawable for Cross<'a, Coord>[src]

impl<'a, Coord: 'a> Drawable for OwnedText<'a, Coord>[src]

impl<'a, Coord: 'a> Drawable for Path<'a, Coord>[src]

impl<'a, Coord: 'a> Drawable for Rectangle<'a, Coord>[src]

impl<'a, Coord: 'a> Drawable for Text<'a, Coord>[src]

impl<'a, X: 'a, Y: 'a + PartialOrd> Drawable for CandleStick<'a, X, Y>[src]

impl<Coord, A, B> Drawable for ComposedElement<Coord, A, B> where
    &'a A: PointCollection<'a, BackendCoord>,
    &'b B: PointCollection<'b, BackendCoord>,
    A: Drawable,
    B: Drawable
[src]

Loading content...