plotters_unsable/drawing/mod.rs
1/*!
2The drawing utils for Plotter. Which handles the both low-level and high-level
3drawing.
4
5For the low-level drawing abstraction, the module defines the `DrawingBackend` trait,
6which handles low-level drawing of different shapes, such as, pixels, lines, rectangles, etc.
7
8On the top of drawing backend, one or more drawing area can be defined and different coordinate
9system can be applied to the drawing areas. And the drawing area implement the high-level drawing
10interface, which draws an element.
11
12Currently we have two backend implemented:
13
14- `BitMapBackend`: The backend that creates bitmap, this is based on `image` crate
15- `SVGBackend`: The backend that creates SVG image, based on `svg` crate.
16
17*/
18mod area;
19mod backend_impl;
20
21pub mod backend;
22
23pub use area::{DrawingArea, DrawingAreaErrorKind, IntoDrawingArea};
24
25pub use backend_impl::*;
26
27pub use backend::DrawingBackend;