Struct usvg::BaseGradient
source · pub struct BaseGradient {
pub units: Units,
pub transform: Transform,
pub spread_method: SpreadMethod,
pub stops: Vec<Stop>,
}
Expand description
A generic gradient.
Fields§
§units: Units
Coordinate system units.
gradientUnits
in SVG.
transform: Transform
Gradient transform.
gradientTransform
in SVG.
spread_method: SpreadMethod
Gradient spreading method.
spreadMethod
in SVG.
stops: Vec<Stop>
A list of stop
elements.
Trait Implementations§
source§impl Clone for BaseGradient
impl Clone for BaseGradient
source§fn clone(&self) -> BaseGradient
fn clone(&self) -> BaseGradient
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