[−][src]Struct plotters::drawing::SVGBackend
The SVG image drawing backend
Methods
impl<'a> SVGBackend<'a>
[src]
pub fn update_document<F: FnOnce(Document) -> Document>(&mut self, op: F)
[src]
pub fn new<T: AsRef<Path> + ?Sized>(path: &'a T, size: (u32, u32)) -> Self
[src]
Create a new SVG drawing backend
pub fn with_buffer(buf: &'a mut Vec<u8>, size: (u32, u32)) -> Self
[src]
Create a new SVG drawing backend and store the document into a u8 buffer
Trait Implementations
impl<'a> DrawingBackend for SVGBackend<'a>
[src]
type ErrorType = Error
The error type reported by the backend
fn get_size(&self) -> (u32, u32)
[src]
fn ensure_prepared(&mut self) -> Result<(), DrawingErrorKind<Error>>
[src]
fn present(&mut self) -> Result<(), DrawingErrorKind<Error>>
[src]
fn draw_pixel(
&mut self,
point: BackendCoord,
color: &RGBAColor
) -> Result<(), DrawingErrorKind<Error>>
[src]
&mut self,
point: BackendCoord,
color: &RGBAColor
) -> Result<(), DrawingErrorKind<Error>>
fn draw_line<S: BackendStyle>(
&mut self,
from: BackendCoord,
to: BackendCoord,
style: &S
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]
&mut self,
from: BackendCoord,
to: BackendCoord,
style: &S
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_rect<S: BackendStyle>(
&mut self,
upper_left: BackendCoord,
bottom_right: BackendCoord,
style: &S,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]
&mut self,
upper_left: BackendCoord,
bottom_right: BackendCoord,
style: &S,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_path<S: BackendStyle, I: IntoIterator<Item = BackendCoord>>(
&mut self,
path: I,
style: &S
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]
&mut self,
path: I,
style: &S
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn fill_polygon<S: BackendStyle, I: IntoIterator<Item = BackendCoord>>(
&mut self,
path: I,
style: &S
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]
&mut self,
path: I,
style: &S
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_circle<S: BackendStyle>(
&mut self,
center: BackendCoord,
radius: u32,
style: &S,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]
&mut self,
center: BackendCoord,
radius: u32,
style: &S,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_text(
&mut self,
text: &str,
style: &TextStyle,
pos: BackendCoord
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]
&mut self,
text: &str,
style: &TextStyle,
pos: BackendCoord
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn blit_bitmap<'b>(
&mut self,
pos: BackendCoord,
(w, h): (u32, u32),
src: &'b [u8]
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]
&mut self,
pos: BackendCoord,
(w, h): (u32, u32),
src: &'b [u8]
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn estimate_text_size<'a>(
&self,
text: &str,
font: &FontDesc<'a>
) -> Result<(u32, u32), DrawingErrorKind<Self::ErrorType>>
[src]
&self,
text: &str,
font: &FontDesc<'a>
) -> Result<(u32, u32), DrawingErrorKind<Self::ErrorType>>
impl<'_> Drop for SVGBackend<'_>
[src]
Auto Trait Implementations
impl<'a> !Send for SVGBackend<'a>
impl<'a> Unpin for SVGBackend<'a>
impl<'a> !Sync for SVGBackend<'a>
impl<'a> !UnwindSafe for SVGBackend<'a>
impl<'a> !RefUnwindSafe for SVGBackend<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,