Struct simplesvg::Attr
[−]
[src]
pub struct Attr { pub fill: Option<ColorAttr>, pub stroke: Option<ColorAttr>, pub stroke_width: Option<f32>, pub opacity: Option<f32>, pub font_family: Option<&'static str>, // some fields omitted }
Style attributes
Fields
fill: Option<ColorAttr>
stroke: Option<ColorAttr>
stroke_width: Option<f32>
opacity: Option<f32>
font_family: Option<&'static str>
Methods
impl Attr
[src]
fn fill(self, c: ColorAttr) -> Self
fn stroke(self, c: ColorAttr) -> Self
fn stroke_width(self, c: f32) -> Self
fn opacity(self, c: f32) -> Self
fn font_family(self, c: &'static str) -> Self
Trait Implementations
impl Clone for Attr
[src]
fn clone(&self) -> Attr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more