[−][src]Trait plotters::element::Drawable
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>>
&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
Implementors
impl<'a, Coord: 'a> Drawable for Circle<'a, Coord>
[src]
fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
impl<'a, Coord: 'a> Drawable for Cross<'a, Coord>
[src]
fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
impl<'a, Coord: 'a> Drawable for OwnedText<'a, Coord>
[src]
fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
impl<'a, Coord: 'a> Drawable for Path<'a, Coord>
[src]
fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
impl<'a, Coord: 'a> Drawable for Rectangle<'a, Coord>
[src]
fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
impl<'a, Coord: 'a> Drawable for Text<'a, Coord>
[src]
fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
impl<'a, X: 'a, Y: 'a + PartialOrd> Drawable for CandleStick<'a, X, Y>
[src]
fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
points: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
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]
&'a A: PointCollection<'a, BackendCoord>,
&'b B: PointCollection<'b, BackendCoord>,
A: Drawable,
B: Drawable,
fn draw<DB: DrawingBackend, I: Iterator<Item = BackendCoord>>(
&self,
pos: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
pos: I,
backend: &mut DB
) -> Result<(), DrawingErrorKind<DB::ErrorType>>