Struct usvg::LinearGradient[][src]

pub struct LinearGradient {
    pub id: String,
    pub x1: f64,
    pub y1: f64,
    pub x2: f64,
    pub y2: f64,
    pub base: BaseGradient,
}

A linear gradient.

linearGradient element in the SVG.

Fields

Element's ID.

Taken from the SVG itself. Can't be empty.

Base gradient data.

Trait Implementations

impl Deref for LinearGradient
[src]

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations