[−][src]Trait plotters::element::Drawable
The trait indicates we are able to draw it on a drawing area
Required methods
fn draw<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, DB: DrawingBackend, T: Borrow<str>> Drawable<DB> for MultiLineText<'a, Coord, T>
[src]
fn draw<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, DB: DrawingBackend, T: Borrow<str>> Drawable<DB> for Text<'a, Coord, T>
[src]
fn draw<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, DB: DrawingBackend + 'a, Coord: Clone> Drawable<DB> for DynElement<'a, DB, Coord>
[src]
fn draw<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>>
impl<Coord, DB: DrawingBackend> Drawable<DB> for Circle<Coord>
[src]
fn draw<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, DB: DrawingBackend> Drawable<DB> for Cross<Coord>
[src]
fn draw<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, DB: DrawingBackend> Drawable<DB> for EmptyElement<Coord, DB>
[src]
fn draw<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>>
impl<Coord, DB: DrawingBackend> Drawable<DB> for Path<Coord>
[src]
fn draw<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, DB: DrawingBackend> Drawable<DB> for Pixel<Coord>
[src]
fn draw<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, DB: DrawingBackend> Drawable<DB> for Rectangle<Coord>
[src]
fn draw<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, DB: DrawingBackend, A, B> Drawable<DB> for ComposedElement<Coord, DB, A, B> where
&'a A: PointCollection<'a, BackendCoord>,
&'b B: PointCollection<'b, BackendCoord>,
A: Drawable<DB>,
B: Drawable<DB>,
[src]
&'a A: PointCollection<'a, BackendCoord>,
&'b B: PointCollection<'b, BackendCoord>,
A: Drawable<DB>,
B: Drawable<DB>,
fn draw<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>>
impl<X, Y: PartialOrd, DB: DrawingBackend> Drawable<DB> for CandleStick<X, Y>
[src]
fn draw<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>>