Struct usvg_tree::LinearGradient
source · pub struct LinearGradient {
pub id: String,
pub x1: f64,
pub y1: f64,
pub x2: f64,
pub y2: f64,
pub base: BaseGradient,
}
Expand description
A linear gradient.
linearGradient
element in 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§
source§impl Clone for LinearGradient
impl Clone for LinearGradient
source§fn clone(&self) -> LinearGradient
fn clone(&self) -> LinearGradient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more