Enum simplesvg::Fig [] [src]

pub enum Fig {
    Rect(f32f32f32f32),
    Circle(f32f32f32),
    Ellipse(f32f32f32f32),
    Line(f32f32f32f32),
    Text(f32f32String),
    Styled(AttrBox<Fig>),
    Transformed(TransBox<Fig>),
    Multiple(Vec<Fig>),
    Shared(Rc<Fig>),
    // some variants omitted
}

Figure parts

Variants

x, y, width, height

cx, cy, radius

cx, cy, rx, ry

x1, y1, x2, y2

Text element, x, y, text

With style attributes

With transformations

A bunch of figure parts

Shared figure part.

Methods

impl Fig
[src]

Apply style from attr.

Apply transformations from trans

Turn self into a Fig::Shared.

Trait Implementations

impl Clone for Fig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Fig
[src]

Formats the value using the given formatter.

impl Display for Fig
[src]

Formats the value using the given formatter. Read more