pub struct SVGWriter { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl RenderBackend for SVGWriter
impl RenderBackend for SVGWriter
Source§fn draw_rect(
&mut self,
xy: Point,
size: Point,
look: &StyleAttr,
properties: Option<String>,
clip: Option<ClipHandle>,
)
fn draw_rect( &mut self, xy: Point, size: Point, look: &StyleAttr, properties: Option<String>, clip: Option<ClipHandle>, )
Draw a rectangle. The top-left point of the rectangle is \p xy. The shape
style (color, edge-width) are passed in \p look. The parameter \p clip
is an optional clip region (see: create_clip).
Source§fn draw_circle(
&mut self,
xy: Point,
size: Point,
look: &StyleAttr,
properties: Option<String>,
)
fn draw_circle( &mut self, xy: Point, size: Point, look: &StyleAttr, properties: Option<String>, )
Draw an ellipse with the center \p xy, and size \p size.
Source§fn draw_arrow(
&mut self,
path: &[(Point, Point)],
dashed: bool,
head: (bool, bool),
look: &StyleAttr,
properties: Option<String>,
text: &str,
)
fn draw_arrow( &mut self, path: &[(Point, Point)], dashed: bool, head: (bool, bool), look: &StyleAttr, properties: Option<String>, text: &str, )
Draw an arrow, with a label, with the style parameters in \p look.
Source§fn draw_line(
&mut self,
start: Point,
stop: Point,
look: &StyleAttr,
properties: Option<String>,
)
fn draw_line( &mut self, start: Point, stop: Point, look: &StyleAttr, properties: Option<String>, )
Draw a line between \p start and \p stop.
Source§fn create_clip(
&mut self,
xy: Point,
size: Point,
rounded_px: usize,
) -> ClipHandle
fn create_clip( &mut self, xy: Point, size: Point, rounded_px: usize, ) -> ClipHandle
Generate a clip region that shapes can use to create complex shapes.
Auto Trait Implementations§
impl Freeze for SVGWriter
impl RefUnwindSafe for SVGWriter
impl Send for SVGWriter
impl Sync for SVGWriter
impl Unpin for SVGWriter
impl UnwindSafe for SVGWriter
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