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
id: String
Element's ID.
Taken from the SVG itself. Can't be empty.
x1: f64
y1: f64
x2: f64
y2: f64
base: BaseGradient
Base gradient data.
Trait Implementations
impl Deref for LinearGradient
[src]
impl Deref for LinearGradient
type Target = BaseGradient
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
Auto Trait Implementations
impl Send for LinearGradient
impl Send for LinearGradient
impl Sync for LinearGradient
impl Sync for LinearGradient