Struct simplesvg::Attr [] [src]

pub struct Attr {
    pub fill: Option<Color>,
    pub stroke: Option<Color>,
    pub stroke_width: Option<f32>,
    pub opacity: Option<f32>,
    pub font_family: Option<&'static str>,
    // some fields omitted
}

Style attributes

Fields

fill: Option<Color> stroke: Option<Color> stroke_width: Option<f32> opacity: Option<f32> font_family: Option<&'static str>

Methods

impl Attr
[src]

fn fill(self, c: Color) -> Self

fn stroke(self, c: Color) -> 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 Default for Attr
[src]

fn default() -> Attr

Returns the "default value" for a type. Read more

impl Debug for Attr
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl Display for Attr
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.