pub trait Drawable<DB: DrawingBackend, CM: CoordMapper = BackendCoordOnly> {
    fn draw<I: Iterator<Item = CM::Output>>(
        &self,
        pos: I,
        backend: &mut DB,
        parent_dim: (u32, u32)
    ) -> Result<(), DrawingErrorKind<DB::ErrorType>>; }
Expand description

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

Required Methods

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

Implementors