[−][src]Struct plotters_unstable::prelude::SVGBackend
The SVG image drawing backend
Implementations
impl<'a> SVGBackend<'a>
[src]
pub fn new<T>(path: &'a T, size: (u32, u32)) -> SVGBackend<'a> where
T: AsRef<Path> + ?Sized,
[src]
T: AsRef<Path> + ?Sized,
Create a new SVG drawing backend
pub fn with_string(buf: &'a mut String, size: (u32, u32)) -> SVGBackend<'a>
[src]
Create a new SVG drawing backend and store the document into a String 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: (i32, i32),
color: BackendColor
) -> Result<(), DrawingErrorKind<Error>>
[src]
&mut self,
point: (i32, i32),
color: BackendColor
) -> Result<(), DrawingErrorKind<Error>>
fn draw_line<S>(
&mut self,
from: (i32, i32),
to: (i32, i32),
style: &S
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
S: BackendStyle,
[src]
&mut self,
from: (i32, i32),
to: (i32, i32),
style: &S
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
S: BackendStyle,
fn draw_rect<S>(
&mut self,
upper_left: (i32, i32),
bottom_right: (i32, i32),
style: &S,
fill: bool
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
S: BackendStyle,
[src]
&mut self,
upper_left: (i32, i32),
bottom_right: (i32, i32),
style: &S,
fill: bool
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
S: BackendStyle,
fn draw_path<S, I>(
&mut self,
path: I,
style: &S
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
I: IntoIterator<Item = (i32, i32)>,
S: BackendStyle,
[src]
&mut self,
path: I,
style: &S
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
I: IntoIterator<Item = (i32, i32)>,
S: BackendStyle,
fn fill_polygon<S, I>(
&mut self,
path: I,
style: &S
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
I: IntoIterator<Item = (i32, i32)>,
S: BackendStyle,
[src]
&mut self,
path: I,
style: &S
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
I: IntoIterator<Item = (i32, i32)>,
S: BackendStyle,
fn draw_circle<S>(
&mut self,
center: (i32, i32),
radius: u32,
style: &S,
fill: bool
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
S: BackendStyle,
[src]
&mut self,
center: (i32, i32),
radius: u32,
style: &S,
fill: bool
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
S: BackendStyle,
fn draw_text<S>(
&mut self,
text: &str,
style: &S,
pos: (i32, i32)
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
S: BackendTextStyle,
[src]
&mut self,
text: &str,
style: &S,
pos: (i32, i32)
) -> Result<(), DrawingErrorKind<<SVGBackend<'a> as DrawingBackend>::ErrorType>> where
S: BackendTextStyle,
fn estimate_text_size<TStyle>(
&self,
text: &str,
style: &TStyle
) -> Result<(u32, u32), DrawingErrorKind<Self::ErrorType>> where
TStyle: BackendTextStyle,
[src]
&self,
text: &str,
style: &TStyle
) -> Result<(u32, u32), DrawingErrorKind<Self::ErrorType>> where
TStyle: BackendTextStyle,
fn blit_bitmap(
&mut self,
pos: (i32, i32),
(u32, u32),
src: &'a [u8]
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]
&mut self,
pos: (i32, i32),
(u32, u32),
src: &'a [u8]
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
impl<'_> Drop for SVGBackend<'_>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for SVGBackend<'a>
impl<'a> Send for SVGBackend<'a>
impl<'a> Sync for SVGBackend<'a>
impl<'a> Unpin for SVGBackend<'a>
impl<'a> !UnwindSafe for SVGBackend<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<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>,