pub struct SvgRenderer { /* private fields */ }Expand description
A renderer that produces SVG output as a string.
Implementations§
Trait Implementations§
Source§impl Renderer for SvgRenderer
impl Renderer for SvgRenderer
Source§fn fill_path(&mut self, path: &Path, paint: &Paint, _transform: Affine)
fn fill_path(&mut self, path: &Path, paint: &Paint, _transform: Affine)
Fills a path with the given paint, under the given transform.
Source§fn stroke_path(
&mut self,
path: &Path,
paint: &Paint,
stroke: &Stroke,
_transform: Affine,
)
fn stroke_path( &mut self, path: &Path, paint: &Paint, stroke: &Stroke, _transform: Affine, )
Strokes a path with the given paint and stroke style, under the given transform.
Source§fn draw_text(
&mut self,
text: &str,
pos: Point,
style: &TextStyle,
_transform: Affine,
)
fn draw_text( &mut self, text: &str, pos: Point, style: &TextStyle, _transform: Affine, )
Draws text at the given position with the given style, under the given transform.
Source§fn draw_image(&mut self, _img: &Image, _dst: Rect, _transform: Affine)
fn draw_image(&mut self, _img: &Image, _dst: Rect, _transform: Affine)
Draws a raster image into the destination rectangle, under the given transform.
Source§fn push_clip(&mut self, path: &Path, _transform: Affine)
fn push_clip(&mut self, path: &Path, _transform: Affine)
Pushes a clipping path. All subsequent draws are clipped to this path.
Auto Trait Implementations§
impl Freeze for SvgRenderer
impl RefUnwindSafe for SvgRenderer
impl Send for SvgRenderer
impl Sync for SvgRenderer
impl Unpin for SvgRenderer
impl UnsafeUnpin for SvgRenderer
impl UnwindSafe for SvgRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more