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

Rect(f32f32f32f32)

x, y, width, height

Circle(f32f32f32)

cx, cy, radius

Ellipse(f32f32f32f32)

cx, cy, rx, ry

Line(f32f32f32f32)

x1, y1, x2, y2

Text(f32f32String)

Text element, x, y, text

Styled(AttrBox<Fig>)

With style attributes

Transformed(TransBox<Fig>)

With transformations

Multiple(Vec<Fig>)

A bunch of figure parts

Shared(Rc<Fig>)

Shared figure part.

Methods

impl Fig
[src]

fn styled(self, attr: Attr) -> Self

Apply style from attr.

fn transformed(self, trans: Trans) -> Self

fn shared(self) -> Self

Trait Implementations

impl Debug for Fig
[src]

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

Formats the value using the given formatter.

impl Clone for Fig
[src]

fn clone(&self) -> Fig

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 Fig
[src]

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

Formats the value using the given formatter.